/* ==========================================================================
   Login — split screen layout with glassmorphism card
   ========================================================================== */
body.login-page.t-auth-page {
    background: var(--t-bg);
    display: flex;
    min-height: 100vh;
    height: auto;
    align-items: stretch;
    padding: 0;
}

.auth-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-brand-pane {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #fff;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 45%, #06B6D4 100%);
    overflow: hidden;
}
.auth-brand-pane::before,
.auth-brand-pane::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.auth-brand-pane::before { width: 420px; height: 420px; top: -140px; right: -120px; }
.auth-brand-pane::after { width: 300px; height: 300px; bottom: -100px; left: -80px; background: rgba(255, 255, 255, 0.06); }

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
    animation: t-fade-in 500ms ease both;
}
.auth-brand-content img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--t-shadow-lg);
    margin-bottom: 1.5rem;
    object-fit: cover;
}
.auth-brand-content h1 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.auth-brand-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}
.auth-brand-illustration {
    position: relative;
    z-index: 1;
    margin-top: 2.25rem;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 1.25rem;
}
.auth-brand-illustration i { animation: t-float 3.6s ease-in-out infinite; }
.auth-brand-illustration i:nth-child(2) { animation-delay: 0.4s; }
.auth-brand-illustration i:nth-child(3) { animation-delay: 0.8s; }
@keyframes t-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-form-pane {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--t-card-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    box-shadow: var(--t-shadow-lg);
    padding: 2.25rem 2rem;
    animation: t-scale-in 320ms ease both;
}
:root[data-theme="light"] .auth-card,
:root:not([data-theme]) .auth-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
}
:root[data-theme="dark"] .auth-card {
    background: rgba(31, 41, 55, 0.75);
    backdrop-filter: blur(14px);
}

.auth-card .login-logo,
.auth-card .login-box-msg { display: none; }

.auth-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--t-text);
    margin-bottom: 0.25rem;
}
.auth-card-subtitle {
    color: var(--t-muted);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

.auth-card .input-group { margin-bottom: 1.1rem; }
.auth-card .input-group-text {
    background: var(--t-bg);
    border-color: var(--t-border);
    color: var(--t-muted);
}
.auth-card .form-control {
    border-left: none;
}
.auth-card .input-group-text ~ .form-control,
.auth-card .input-group > .form-control:not(:first-child) {
    border-left: none;
}
.auth-card .input-group:focus-within .input-group-text {
    border-color: var(--t-primary);
    color: var(--t-primary);
}

.auth-card .btn-primary {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--t-radius-sm);
    margin-top: 0.35rem;
}

.auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    font-size: 0.82rem;
}
.auth-remember-row a { color: var(--t-primary); font-weight: 600; }

@media (max-width: 991.98px) {
    .auth-brand-pane { display: none; }
    .auth-form-pane { flex: 1 1 100%; }
}
