﻿:root {
    --consultor-accent: #2563eb;
    --consultor-accent-soft: rgba(37,99,235,0.16);
    --text-strong: #111827;
    --text: #374151;
    --muted: #6b7280;
    --border: rgba(31,41,55,0.18);
    --card-bg: rgba(255,255,255,0.92);
}

/* Base */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #8fd1ff 0%, #f3f4f6 42%, #f3f4f6 100%);
    color: var(--text);
}

/* Página */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

/* Card */
.login-card {
    width: min(720px, 100%);
    background: var(--card-bg);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Ribbon Consultor */
.module-ribbon {
    position: absolute;
    left: 16px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #0b1220;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(31,41,55,0.16);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.module-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--consultor-accent);
    box-shadow: 0 0 0 4px var(--consultor-accent-soft);
}

/* Cabeçalho */
.login-header {
    padding: 22px 22px 10px 22px;
    text-align: center;
}

.login-brand {
    display: flex;
    justify-content: center;
    padding: 6px 0 10px 0;
}

.brand-link {
    text-decoration: none;
}

.login-logo {
    max-width: 260px;
    max-height: 120px;
    height: auto;
    display: block;
}

.login-title {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-strong);
}

.login-subtitle {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--muted);
}

/* Corpo */
.login-body {
    padding: 10px 22px 18px 22px;
}

/* Campos */
.field {
    margin-top: 14px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.field-control {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    color: #334155;
}

.field-input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(37,99,235,0.06);
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}

    .field-input:focus {
        border-color: rgba(37,99,235,0.7);
        box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
    }

/* Ações */
.login-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

/* Botão primário */
.btn-primary-consultor {
    height: 44px;
    border-radius: 12px;
    border: none;
    padding: 0 18px;
    font-weight: 900;
    background: var(--consultor-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37,99,235,0.25);
    cursor: pointer;
}

    .btn-primary-consultor:hover {
        filter: brightness(0.97);
    }

/* Secundário */
.btn-secondary-modern {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(31,41,55,0.18);
    padding: 0 14px;
    background: rgba(255,255,255,0.75);
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

    .btn-secondary-modern:hover {
        background: rgba(255,255,255,0.9);
    }

/* Alerta */
.login-alert:empty {
    display: none;
}

.login-alert {
    margin-top: 12px;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(239,68,68,.22);
    background: rgba(239,68,68,.08);
    color: #991b1b;
    font-size: 12px;
}

/* Painel (versão + aviso) */
.login-infopanel {
    margin-top: 14px;
    border: 1px solid rgba(31,41,55,.12);
    background: rgba(255,255,255,.72);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 10px;
}

.login-infopanel-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--text);
}

    .login-infopanel-row .k {
        font-weight: 900;
        color: var(--text-strong);
    }

    .login-infopanel-row .v {
        font-weight: 900;
        color: #b91c1c;
    }

.login-infopanel-note {
    margin-top: 8px;
    font-size: 8px;
    color: var(--muted);
    line-height: 1.35;
}

/* Rodapé técnico */
.login-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

.login-footer-text {
    white-space: nowrap;
}

/* Responsivo */
@media (max-width: 520px) {
    .login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-consultor, .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }

    .module-ribbon {
        left: 12px;
        top: 12px;
    }

    .login-logo {
        max-width: 220px;
    }
}
.login-card {
    width: min(520px, 100%) !important; /* ajuste principal */
}

/* Mantém o conteúdo com respiro proporcional (igual Gestão) */
.login-header {
    padding: 20px 20px 10px 20px !important;
}

.login-body {
    padding: 10px 20px 16px 20px !important;
}

/* Logo: não dominar o card (fica mais “Gestão”) */
.login-logo {
    max-width: 220px !important;
    max-height: 96px !important;
}

/* Em telas muito grandes, evita sensação de “card perdido” */
.login-page {
    padding: 24px 14px !important;
}