/* Tela de login (Views/Auth/Login.cshtml) e páginas públicas fora do sistema que seguem o mesmo padrão: Validação da licença, termos do contrato e
   acesso do suporte (fundo azul-claro com círculos, logo no topo, cartão branco, campos e botão do login). Complementos só dessas páginas em
   validacao-licenca.css. */
* { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }
body {
    display:grid; place-items:center;
    font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 10% 90%, rgba(31,111,185,.12) 0 90px, transparent 91px),
        radial-gradient(circle at 88% 14%, rgba(58,136,207,.10) 0 110px, transparent 111px),
        linear-gradient(160deg,#eef4fb,#dce9f7);
}
.login-wrap {
    width:min(790px,92vw);
    display:grid;
    grid-template-columns: 1fr;
    gap:12px;
}
.top-logo {
    display:flex;
    justify-content:center;
    margin-top: -28px;
    margin-bottom: 24px;
}
.top-logo img { height:96px; width:auto; }
.card {
    --login-campo-altura: 38px;
    position: relative;
    width:100%;
    background:#fff;
    border:1px solid #c8d9eb;
    border-radius:10px;
    box-shadow:0 14px 36px rgba(10,32,58,.16);
    padding:18px 18px 16px 126px;
    min-height: 198px;
}
.avatar-badge {
    position:absolute;
    left:24px;
    top:24px;
    width:82px;
    height:82px;
    border-radius:50%;
    border:2px solid #bfd2e7;
    background: linear-gradient(180deg, #f9fcff 0%, #ecf4fb 100%);
    display:grid;
    place-items:center;
    color:#5e7f9f;
    font-size:34px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.content {
    display:grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap:18px;
    align-items:start;
}
.left h1 {
    font-size:30px;
    line-height:1.04;
    color:#0f4f91;
    letter-spacing:.2px;
    margin-bottom:8px;
    word-break:normal;
}
.left .sub {
    font-size:13px;
    font-weight:700;
    color:#335d86;
    text-transform:uppercase;
    letter-spacing:.4px;
    word-break:break-word;
}
.field { display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.field[hidden] { display:none; }
.field label { font-size:12px; color:#315472; font-weight:700; }
.user-row {
    display:grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    align-items:end;
}
.user-row > .user-col { display:flex; flex-direction:column; gap:6px; min-width:0; }
.user-name-preview {
    height: var(--login-campo-altura);
    border:1px solid #cddced;
    border-radius:4px;
    background:#f2f7fd;
    display:flex;
    align-items:center;
    padding:0 10px;
    font-size:13px;
    font-weight:700;
    color:#1f507d;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.field input {
    border:1px solid #9eb9d8; border-radius:4px; padding:0 10px; font-size:14px; font-family:inherit;
    background:#fffdeb; width:100%; min-width:0; height: var(--login-campo-altura);
}
.notice {
    border: 1px solid #efc2be;
    background: #fff1f0;
    color: #9f2219;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
}
.notice-aviso {
    border-color: #dfb867;
    background: #fff4d9;
    color: #7a4d00;
}
.btn {
    width:100%; border:2px solid #1f8ad6; background:#ffffff; color:#0f6cb2; font-weight:700;
    border-radius:4px; padding:8px 10px; cursor:pointer; font-size:18px;
    letter-spacing:.3px;
}
.btn:hover {
    background:#eef7ff;
}
.help-row {
    margin-top:8px;
    display:flex;
    justify-content:space-between;
    font-size:12px;
}
.help-row a {
    color:#1f6fb9;
    text-decoration:none;
    font-weight:600;
}
.help-row a:hover { text-decoration:underline; }

.company-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 41, 64, 0.34);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 16px;
}
.company-modal-overlay.open { display: flex; }
.company-modal {
    width: min(430px, 96vw);
    background: #ffffff;
    border: 1px solid #c8d9eb;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(10,32,58,.26);
    overflow: hidden;
}
.company-modal-head {
    background: linear-gradient(90deg, #1f6fb9 0%, #3a88cf 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 14px;
}
.company-modal-body {
    padding: 14px;
    color: #123f63;
}
.company-modal-text {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.company-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.company-modal-field label {
    font-size: 12px;
    color: #315472;
    font-weight: 700;
}
.company-modal-field input {
    border: 1px solid #9eb9d8;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fffdeb;
}
.company-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}
.company-modal-btn {
    min-width: 104px;
    border: 1px solid #a9bed6;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg,#ffffff 0%, #e9f1fb 100%);
    color: #123f63;
}
.company-modal-btn.primary {
    background: linear-gradient(180deg,#9fc8ee 0%, #7fb1e0 100%);
    border-color: #6c9ecf;
    color: #123f63;
}

@media (max-width: 760px) {
    .card {
        padding:16px;
        min-height: 0;
    }
    .avatar-badge {
        position:static;
        margin: 0 auto 12px auto;
    }
    .content {
        grid-template-columns: 1fr;
    }
    .left h1 {
        font-size:28px;
        text-align:center;
    }
    .left .sub {
        text-align:center;
        margin-bottom:8px;
    }
}
