/* Tela de login split-screen — identidade SendCase (teal -> azul).
   Usa Mulish e Font Awesome já carregados globalmente (_HeadPartial). */

.login-stage {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 100vh;
    font-family: 'Mulish', system-ui, sans-serif;
}

/* ===== Painel de marca ===== */
.login-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #00c295 0%, #00997e 42%, #003a52 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%);
}
.login-brand > * {
    position: relative;
    z-index: 2;
}
.login-pulse {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26%;
    width: 100%;
    height: 200px;
    z-index: 1;
    opacity: .25;
}
.login-pulse path {
    fill: none;
    stroke: rgba(255, 255, 255, .55);
    stroke-width: 2.5;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: login-draw 4.5s ease-in-out infinite;
}
@keyframes login-draw {
    0% { stroke-dashoffset: 1600; }
    55% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1600; }
}
@media (prefers-reduced-motion: reduce) {
    .login-pulse path { animation: none; stroke-dashoffset: 0; }
}
.login-brand-logo { height: 48px; width: auto; align-self: flex-start; max-width: 240px; object-fit: contain; }
.login-eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 18px;
}
.login-brand h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 18px;
    max-width: 15ch;
}
.login-brand h1 em { font-style: normal; color: #c9fff0; }
.login-lead {
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    margin: 0;
    max-width: 34ch;
}
.login-feats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px;
}
.login-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: .96rem;
}
.login-feat .ico {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.login-feat small {
    display: block;
    font-weight: 400;
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
}
.login-brand-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
}
.login-brand-foot .logo-ironbug { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .92; }

/* ===== Painel do formulário ===== */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}
.login-card { width: 100%; max-width: 380px; }
.login-card-logo { height: 56px; width: auto; margin-bottom: 24px; }
.login-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 4px;
    color: #0b2e3d;
}
.login-card .login-sub { color: #667085; font-size: .95rem; margin: 0 0 28px; }
.login-field { margin-bottom: 16px; }
.login-field > label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: #0b2e3d;
    margin-bottom: 7px;
}
.login-inp { position: relative; }
.login-inp > .fa,
.login-inp > .fa-solid {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: .95rem;
}
.login-inp input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e8edf2;
    border-radius: 12px;
    padding: 0 44px 0 40px;
    font-family: inherit;
    font-size: .98rem;
    color: #0b2e3d;
    background: #fbfdfe;
    transition: border-color .15s, box-shadow .15s;
}
.login-inp input::placeholder { color: #9aa6b2; }
.login-inp input:focus {
    outline: none;
    border-color: #00c295;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 194, 149, .16);
}
.login-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    color: #98a2b3;
    padding: 8px;
}
.login-forgot { display: flex; justify-content: flex-end; margin: -4px 0 20px; }
.login-forgot a { color: #007e63; font-weight: 600; font-size: .86rem; text-decoration: none; }
.login-forgot a:hover { color: #00c295; }
.login-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(140deg, #00c295, #003a52);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.02rem;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 150, 120, .28);
    transition: transform .12s, box-shadow .12s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(0, 150, 120, .34); }
.login-btn:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }
.login-msg { color: #e5484d; font-size: .88rem; font-weight: 600; margin: 4px 0 12px; }
.login-meta { text-align: center; margin-top: 24px; font-size: .78rem; color: #98a2b3; line-height: 1.6; }
.login-badge-staging { text-align: center; margin-top: 12px; }
.login-ironbug {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8edf2;
    font-size: .78rem;
    color: #667085;
}
.login-ironbug .logo-ironbug { height: 22px; }

/* ===== Faixa de marca no mobile ===== */
.login-mobilebrand { display: none; }

@media (max-width: 920px) {
    .login-stage { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-mobilebrand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(140deg, #00c295, #003a52);
        padding: 18px;
    }
    .login-mobilebrand img { height: 38px; width: auto; }
    .login-panel { padding: 32px 22px; min-height: calc(100vh - 74px); align-items: flex-start; }
}

/* ===== Baixe o app (abaixo do formulário de login) ===== */
.login-appcta {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 380px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eef1f5;
}
.login-appcta .scapp-qr { width: 118px; height: 118px; flex-shrink: 0; }
.login-appcta-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.login-appcta-label { font-size: .82rem; font-weight: 600; color: #344054; }
.login-appcta-note { font-size: .72rem; color: #8a97a6; margin-bottom: 4px; }
.login-appcta .scapp-badges { gap: .5rem; }
.login-appcta .scapp-badge { min-width: 150px; }

@media (max-width: 460px) {
    .login-appcta { flex-direction: column; align-items: flex-start; }
    .login-appcta .scapp-qr { align-self: center; }
}
