/* ==========================================================================
   Donc — Login v3
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body, form {
    height: 100%;
    margin: 0; padding: 0;
    font-family: var(--font-body);
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */

.login-page {
    display: flex;
    min-height: 100vh;
}

/* ── PAINEL ESQUERDO ────────────────────────────────────────────────────── */

.login-left {
    flex: 0 0 50%;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 56px;
}

.login-left-content {
    position: relative;
    z-index: 2;
}

.login-logo {
    height: 64px;
    display: block;
    margin-bottom: 52px;
    filter: none;
}

.login-tagline {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.login-desc {
    font-size: 14px;
    color: rgba(255,255,255,.50);
    margin: 0;
    line-height: 1.75;
    max-width: 300px;
}

/* Separador sky */
.login-left-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--sky);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Anéis decorativos */
.login-deco-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1.5px solid rgba(89,194,237,.12);
}

.login-deco-ring--1 { width: 500px; height: 500px; bottom: -180px; right: -180px; }
.login-deco-ring--2 { width: 300px; height: 300px; bottom: -80px; right: -80px; border-color: rgba(89,194,237,.08); }

.login-left::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89,194,237,.14) 0%, transparent 70%);
    top: -80px; right: -80px;
    pointer-events: none;
}

/* ── PAINEL DIREITO ─────────────────────────────────────────────────────── */

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--surface);
}

.login-card {
    width: 100%;
    max-width: 480px;
}

/* asp:Login envolve o LayoutTemplate num <span> inline — forçar block */
.login-card > span {
    display: block;
    width: 100%;
}

/* ── CABEÇALHO DO CARD ──────────────────────────────────────────────────── */

.login-card-header {
    margin-bottom: 32px;
}

.login-card-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.login-card-header p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
}

/* ── ERRO DE AUTENTICAÇÃO ───────────────────────────────────────────────── */

.login-error-wrap {
    display: none;
    background: #fff2f2;
    border: 1px solid #fac5c5;
    border-radius: var(--r-sm);
    color: #c0392b;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

/* ── CAMPOS ─────────────────────────────────────────────────────────────── */

.login-field {
    margin-bottom: 16px;
    width: 100%;
}

.login-field > label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
    width: 100%;
    display: block;
}

.login-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.login-input {
    display: block;
    width: 100% !important;
    height: 44px !important;
    padding: 0 44px 0 38px !important;
    font-size: 14px !important;
    font-family: var(--font-body);
    border: 1.5px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    background: var(--card) !important;
    color: var(--navy) !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.login-input:focus {
    border-color: var(--sky) !important;
    box-shadow: 0 0 0 3px var(--sky-15) !important;
    background: #fff !important;
}

.login-input::placeholder { color: var(--text-muted); font-size: 13px; }

.login-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s;
    z-index: 1;
}
.login-pwd-toggle:hover { color: var(--navy); }

.login-field-error {
    display: block;
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
}

/* ── OPÇÕES ─────────────────────────────────────────────────────────────── */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 24px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    user-select: none;
}

.login-remember input[type=checkbox] {
    width: 15px !important;
    height: 15px !important;
    accent-color: var(--navy);
    cursor: pointer;
    margin: 0 !important;
    flex-shrink: 0;
}

.login-forgot {
    font-size: 13px;
    color: var(--sky);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.login-forgot:hover { color: var(--navy); text-decoration: none; }

/* ── BOTÃO ENTRAR ───────────────────────────────────────────────────────── */

.login-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 46px !important;
    background: var(--lime) !important;
    border: 1.5px solid var(--lime-90) !important;
    border-radius: var(--r-sm) !important;
    color: var(--navy) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    letter-spacing: .02em;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s, opacity .15s;
}
.login-btn:hover {
    background: var(--lime-90) !important;
    color: var(--navy) !important;
    text-decoration: none !important;
}
.login-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── VERSÃO ──────────────────────────────────────────────────────────────── */

.login-version {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .04em;
}

/* ── RESPONSIVO ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right { padding: 32px 20px; background: var(--card); }
}
