body.auth-page {
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    overflow: hidden;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
}

.auth-ad-sticky {
    position: relative;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    z-index: 2;
}

.auth-ad-panel {
    height: 100vh;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 0;
    background: linear-gradient(165deg, #0a1628 0%, #122a4a 40%, #1e4a8a 75%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 0 40px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.auth-ad-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 200, 255, 0.08) 0, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.15) 0, transparent 50%);
    pointer-events: none;
}

.auth-ad-inner {
    position: relative;
    z-index: 1;
    padding: clamp(14px, 2vh, 24px) clamp(18px, 2.5vw, 28px);
    width: 100%;
    max-width: 480px;
    max-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(2px, 0.6vh, 8px);
    box-sizing: border-box;
}

.auth-login-column {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 0;
    padding: 24px 28px;
    overflow-y: auto;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #e0f2fe 100%);
}

.auth-ad-lang {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.auth-ad-lang a {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.15s ease;
}

.auth-ad-lang a:hover,
.auth-ad-lang a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.auth-ad-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.auth-ad-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.auth-ad-brand img.auth-ad-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

.auth-ad-tagline {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.35;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auth-ad-product {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.auth-ad-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.auth-ad-product h2 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.auth-ad-product p {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auth-ad-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.auth-ad-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: #1e40af;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.15s ease;
}

.auth-ad-btn-primary:hover {
    background: #f1f5f9;
    color: #1e3a8a;
    text-decoration: none;
}

.auth-ad-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    text-decoration: none;
    text-align: center;
}

.auth-ad-link:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-ad-contact {
    margin: 6px 0 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    flex-shrink: 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    padding: 36px 32px 32px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand img {
    max-height: 52px;
    max-width: 200px;
    width: auto;
    margin-bottom: 16px;
}

.auth-brand h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
}

.auth-brand p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-form .form-control {
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 10px 14px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.auth-form .btn-primary {
    height: 46px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: #2563eb;
    border-color: #2563eb;
}

.auth-form .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -6px;
    margin-bottom: 4px;
}

.auth-links a {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-footer-text {
    text-align: center;
    margin-top: 22px;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer-text a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.auth-demo-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #475569;
}

.auth-demo-box .badge {
    margin: 3px;
    font-weight: 600;
}

.auth-alert {
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.auth-copyright {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-height: 760px) {
    .auth-ad-inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .auth-ad-tagline {
        -webkit-line-clamp: 1;
    }

    .auth-ad-product p {
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 960px) {
    body.auth-page {
        height: auto;
        overflow: auto;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .auth-ad-sticky {
        height: auto;
        overflow: visible;
    }

    .auth-ad-panel {
        height: auto;
        min-height: auto;
        padding: 20px 0;
    }

    .auth-ad-inner {
        max-height: none;
        overflow: visible;
    }

    .auth-login-column {
        height: auto;
        min-height: auto;
        padding: 32px 20px 40px;
    }
}

@media (max-width: 480px) {
    .auth-ad-inner {
        padding: 20px 16px;
    }

    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }
}
