/* ========================================
   LOGIN — Fluent / Modern Design
   ======================================== */

.page:has(.login-split) {
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
    position: relative !important;
}

:root {
    --color-primary-dark: var(--primary-darker, #0F3778);
    --color-primary: var(--primary, #2E6BE6);
    --color-accent: #8AB4F8;
    --color-text-main: var(--text-strong, rgba(17, 24, 39, 0.92));
    --color-text-muted: var(--text-muted, rgba(107, 114, 128, 0.90));
    --color-danger: var(--danger, #EF4444);
    --bg-body: var(--bg, #F6F7FB);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body { height: 100%; overflow: hidden; }
a, a:hover, a:focus, a:active, a:visited { text-decoration: none !important; }
body { background-color: var(--bg-body) !important; }


/* ═══ SPLIT LAYOUT ═══ */
.login-split {
    display: flex;
    width: 100%;
    height: 100vw;
    position: relative;
    z-index: 10;
}


/* ────────── ASIDE (esquerda) ────────── */
.login-aside {
    flex: 0 0 460px;
    max-width: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 12;
}

.login-aside-inner {
    width: 100%;
    padding: 32px 32px;
}

/* Acrylic card — Fluent material */
.login-card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(40px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(40px) saturate(1.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 16px 48px rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    padding: 40px 32px !important;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-img {
    display: block;
    width: 56px;
    height: auto;
    object-fit: contain;
}

/* Textos */
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-weight: 400;
}

/* Formulário */
.login-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-card .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-left: 2px;
}

.login-card .input-group { position: relative; box-shadow: none; }

.login-card .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px !important;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    border-bottom-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(46, 107, 230, 0.08);
}

.login-card .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Toggle password */
.btn-toggle-pass {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--color-text-muted); padding: 6px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.btn-toggle-pass:hover {
    color: var(--color-primary) !important;
    background: rgba(46, 107, 230, 0.06);
}

/* Botão de Login */
.btn-login {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: var(--color-primary);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.btn-login:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(46, 107, 230, 0.28);
}
.btn-login:active {
    transform: scale(0.985);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}

/* Footer links */
.footer-links { margin-top: 24px; }
.link-text {
    display: block; font-size: 0.8125rem; color: var(--color-text-muted);
    margin-bottom: 6px; transition: color 0.15s;
}
.link-text:hover { color: var(--color-primary); }
.link-highlight { color: var(--color-primary); font-weight: 600; }


/* ────────── SHOWCASE (direita) ────────── */
.login-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.showcase-content {
    padding: 48px 56px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

/* Typing */
.showcase-typing-area {
    min-height: 100px;
    display: block;
    word-break: break-word;
    overflow-wrap: break-word;
}

.showcase-typing-text {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
}

/* Cursor — thin bar, Fluent style */
.showcase-cursor {
    display: inline-block;
    width: 2.5px;
    height: 1.2em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--color-primary);
    border-radius: 2px;
    animation: cursor-blink 0.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.showcase-cursor.is-blinking {
    animation: cursor-blink 1.1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Tagline */
/* Tagline — posição fixa no showcase, fora do flow do typing */
/* .showcase-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin: 0;
    padding: 0 56px 40px;
    letter-spacing: 0.01em;
    opacity: 0.65;
    flex-shrink: 0;
} */


/* ═══ RESPONSIVIDADE ═══ */

@media (max-width: 1024px) {
    .login-aside { flex: 0 0 400px; max-width: 400px; }
    .login-aside-inner { padding: 24px 24px; }
    .showcase-typing-text { font-size: 1.75rem; }
    .showcase-content { padding: 40px 40px; }
}

@media (max-width: 768px) {
    .page:has(.login-split) {
        height: auto !important;
        min-height: 100vh !important;
        overflow: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    html, body { overflow: auto; height: auto; }
    .login-split {
        flex-direction: column-reverse;
        height: auto;
        min-height: 100vw;
        margin-top: 30% !important;
        padding: 0 !important;
    }
    .login-aside { flex: none; max-width: 100%; width: 100%; }
    .login-aside-inner {
        max-width: 440px;
        margin: 0 auto;
        padding: 16px 16px 24px;
    }
    .login-showcase {
        flex: none;
        padding: 20px 20px 0;
        align-items: center;
    }
    .showcase-content {
        padding: 0;
        max-width: 100%;
        align-items: center;
        text-align: center;
        gap: 6px;
        flex: unset;
    }
    .showcase-typing-area { min-height: 40px; text-align: center; }
    .showcase-typing-text { font-size: 1.125rem; }
    /* .showcase-tagline { padding: 6px 20px 0; font-size: 0.75rem; display: block; } */
}

@media (max-width: 480px) {
    .login-card { padding: 24px 18px !important; border-radius: 14px !important; }
    .logo-img { width: 44px; }
    .logo-container { padding: 10px; margin-bottom: 16px; }
    .login-title { font-size: 1.25rem; }
    .login-subtitle { margin-bottom: 24px; }
    .login-aside-inner { padding: 12px 10px 20px; }
    .showcase-typing-text { font-size: 1rem; }
    .showcase-typing-area { min-height: 36px; }
    /* .showcase-tagline { padding: 4px 16px 0; font-size: 0.6875rem; } */
    .dash-blob { filter: blur(50px); opacity: 0.25; }
}


/* ═══ DARK THEME ═══ */
[data-bs-theme="dark"] .login-card {
    background: rgba(30, 30, 30, 0.78) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.20) !important;
}

[data-bs-theme="dark"] .logo-container {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .login-title { color: rgba(255, 255, 255, 0.95); }
[data-bs-theme="dark"] .login-subtitle { color: rgba(255, 255, 255, 0.50); }

[data-bs-theme="dark"] .login-card .form-label { color: rgba(255, 255, 255, 0.80); }

[data-bs-theme="dark"] .login-card .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
}

[data-bs-theme="dark"] .login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    border-bottom-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.10);
}

[data-bs-theme="dark"] .login-card .form-control::placeholder { color: rgba(255, 255, 255, 0.30); }
[data-bs-theme="dark"] .btn-toggle-pass { color: rgba(255, 255, 255, 0.45); }
[data-bs-theme="dark"] .btn-toggle-pass:hover { background: rgba(255, 255, 255, 0.06); }
[data-bs-theme="dark"] .link-text { color: rgba(255, 255, 255, 0.45); }

[data-bs-theme="dark"] .btn-login {
    background: var(--color-accent);
    color: rgba(0, 0, 0, 0.88);
}
[data-bs-theme="dark"] .btn-login:hover { background: #a0c4fa; }

[data-bs-theme="dark"] .showcase-typing-text { color: rgba(255, 255, 255, 0.92); }
[data-bs-theme="dark"] .showcase-cursor { background: var(--color-accent); }
/* [data-bs-theme="dark"] .showcase-tagline { color: rgba(255, 255, 255, 0.35); } */