/* ── Entrar ── */

.entrar-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

/* ── PAINEL ESQUERDO ── */
.entrar-panel-esq {
    flex: 1;
    background: linear-gradient(145deg, #1A3A9E 0%, #2451C8 55%, #1e4bc0 100%);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.entrar-panel-esq::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.07) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,.05) 0%, transparent 40%);
    pointer-events: none;
}

.esq-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 52px 52px 40px;
    width: 100%;
}

/* logo */
.esq-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; color: #fff;
}
.logo-text { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.3px; }

/* headline */
.esq-headline h1 {
    font-size: 34px; font-weight: 800; line-height: 1.15;
    color: #fff; margin: 0 0 14px; letter-spacing: -.5px;
}
.esq-headline p {
    font-size: 16px; color: rgba(255,255,255,.72); line-height: 1.55; margin: 0;
}

/* benefícios */
.esq-beneficios {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 22px;
}
.esq-beneficios li {
    display: flex; align-items: flex-start; gap: 14px;
}
.beneficio-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.esq-beneficios li strong {
    display: block;
    font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.esq-beneficios li span {
    font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5;
}

/* rodapé esq */
.esq-rodape {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: rgba(255,255,255,.38);
    font-weight: 600; letter-spacing: .3px;
    margin-top: auto;
}

/* ── PAINEL DIREITO ── */
.entrar-panel-dir {
    flex: 1;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* cabeçalho */
.form-header { display: flex; flex-direction: column; gap: 4px; }
.form-header h2 {
    font-size: 26px; font-weight: 800;
    color: var(--text-main); margin: 0; letter-spacing: -.4px;
}
.form-header p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* tabs */
.login-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 9px 0;
    text-align: center;
    font-size: 14px; font-weight: 500;
    color: var(--text-muted);
    border-radius: 9px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    transition: background .15s, color .15s;
}

.login-tab.ativo {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

/* alertas */
.alerta-erro {
    background: #FEF2F2; border: 1px solid #FECACA;
    border-radius: 12px; padding: 12px 16px;
    font-size: 13px; color: #B91C1C; line-height: 1.5;
    display: flex; gap: 10px; align-items: flex-start;
}

/* campos */
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
    font-size: 12px; font-weight: 700;
    color: var(--text-main); letter-spacing: .1px;
}

.campo-linha {
    display: flex; justify-content: space-between; align-items: center;
}
.campo-linha label { font-size: 12px; font-weight: 700; color: var(--text-main); }

.link-esqueceu {
    font-size: 12px; font-weight: 600;
    color: var(--primary); text-decoration: none;
}
.link-esqueceu:hover { text-decoration: underline; }

.form-group input[type="text"],
.form-group input[type="password"],
input[name="NomeUsuario"],
input[name="Senha"] {
    height: 46px;
    border: 1.5px solid var(--border-card);
    border-radius: 12px;
    padding: 0 14px;
    font-family: inherit; font-size: 14px;
    color: var(--text-main); background: #fff;
    outline: none; transition: border-color .15s, box-shadow .15s;
    width: 100%;
}

.form-group input:focus,
input[name="NomeUsuario"]:focus,
input[name="Senha"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36,81,200,.1);
}

.form-group input::placeholder,
input[name="NomeUsuario"]::placeholder,
input[name="Senha"]::placeholder { color: #C0C8DC; }

/* senha */
.senha-wrapper { position: relative; }
.senha-wrapper input { padding-right: 44px; }
.senha-wrapper input[type="password"]::-ms-reveal,
.senha-wrapper input[type="password"]::-ms-clear { display: none; }
.senha-wrapper input[type="password"]::-webkit-credentials-auto-fill-button { display: none; }
.btn-olhinho {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; -webkit-appearance: none; appearance: none; cursor: pointer; padding: 0;
    color: #B0B8D0; display: flex; align-items: center; transition: color .15s;
}
.btn-olhinho:hover { color: var(--primary); }

/* lembrar-me */
.lembrar-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.lembrar-row input[type="checkbox"] {
    width: 16px; height: 16px; flex-shrink: 0;
    accent-color: var(--primary); cursor: pointer;
}

/* botão */
.btn-entrar {
    width: 100%; height: 50px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 13px;
    font-family: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background .15s, transform .1s;
    box-shadow: 0 4px 14px rgba(36,81,200,.28);
}
.btn-entrar:hover { background: var(--primary-dark); }
.btn-entrar:active { transform: scale(.98); }

/* cta cadastro */
.cadastro-cta {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13px; color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.cadastro-cta a {
    color: var(--primary); font-weight: 700; text-decoration: none;
}
.cadastro-cta a:hover { text-decoration: underline; }

/* QR block (aluno) */
.qr-block {
    display: flex; align-items: center; gap: 12px;
    background: var(--primary-light);
    border: 1px solid var(--border-card);
    border-radius: 12px; padding: 14px 16px;
    opacity: .6; cursor: not-allowed;
}
.qr-block-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--primary); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.qr-block-texto strong {
    display: block; font-size: 14px; font-weight: 700; color: var(--text-main);
}
.qr-block-texto span {
    font-size: 12px; color: var(--text-muted); margin-top: 1px; display: block;
}

/* painel aluno oculto por padrão */
.painel-aluno { display: none; }

/* footer legal */
.login-footer-legal {
    display: flex; justify-content: center; gap: 16px;
    font-size: 12px;
}
.login-footer-legal a {
    color: var(--text-muted); text-decoration: none;
}
.login-footer-legal a:hover { color: var(--primary); }

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
    .entrar-panel-esq { display: none; }
    .entrar-panel-dir { padding: 32px 20px; }
}

@media (max-width: 640px) {
    .entrar-wrapper { min-height: 100dvh; }
    .entrar-panel-dir { padding: 24px 16px; align-items: flex-start; padding-top: 40px; }
    .login-card { max-width: 100%; }
}

/* ── Utilitários extraídos de style inline ── */
.entrar-alerta-icone { flex-shrink: 0; margin-top: 1px; }
.entrar-qr-chevron { margin-left: auto; color: var(--primary); flex-shrink: 0; }
