/* Tela de login - painel duplo (marca/ilustração à esquerda, formulário à
   direita), inspirado em produtos SaaS modernos (Intercom/Front/Linear).
   Reaproveita os tokens de site.css (--primary-color etc). */

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--app-surface);
    padding: 24px;
}

.login-card {
    max-width: 940px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
}

/* ---------- Painel esquerdo: marca + ilustração ---------- */

.login-brand-panel {
    background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-illustration {
    width: 180px;
    height: 180px;
    margin-bottom: 24px;
}

.login-brand-panel h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.login-brand-panel p {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 28px;
    max-width: 340px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-feature-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-feature-icon svg {
        width: 18px;
        height: 18px;
    }

.login-feature-titulo {
    font-weight: 600;
    font-size: 13.5px;
}

.login-feature-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .75);
}

/* ---------- Painel direito: formulário ---------- */

.login-form-panel {
    background: var(--app-card);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

    .login-form-brand svg {
        width: 30px;
        height: 30px;
    }

    .login-form-brand span {
        font-size: 20px;
        font-weight: 700;
        color: var(--app-text);
    }

.login-form-subtitulo {
    color: var(--app-text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.login-field-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.login-field-wrapper {
    position: relative;
    margin-bottom: 16px;
}

    .login-field-wrapper svg.login-field-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--app-text-muted);
        pointer-events: none;
    }

    .login-field-wrapper input {
        padding-left: 38px;
    }

    .login-field-wrapper button.login-toggle-senha {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: transparent;
        color: var(--app-text-muted);
        padding: 4px;
        cursor: pointer;
        line-height: 0;
    }

        .login-field-wrapper button.login-toggle-senha svg {
            width: 16px;
            height: 16px;
        }

.login-linha-opcoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12.5px;
}

.login-lembrar {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--app-text-muted);
}

.login-esqueci {
    color: var(--app-text-muted);
    text-decoration: none;
    cursor: default;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--app-text-muted);
    font-size: 12px;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--app-border);
    }

.login-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

    .login-btn-google svg {
        width: 16px;
        height: 16px;
    }

.login-form-footer {
    text-align: center;
    color: var(--app-text-muted);
    font-size: 11.5px;
    margin-top: 24px;
}

.login-rodape {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--app-text-muted);
    font-size: 12.5px;
}

    .login-rodape svg {
        width: 14px;
        height: 14px;
    }

@media (max-width: 860px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .login-brand-panel {
        display: none;
    }
}
