@import "../variables.css";

/* ═══════════════════════════════════════
   SPLIT LOGIN DESIGN CSS
   ═══════════════════════════════════════ */

.split-login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-page);
}

/* 1. TOP SECTION (VISUAL) */
.login-top-section {
    position: relative;
    height: 28vh; /* Reduced from 45vh */
    min-height: 200px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 40px 40px;
}

.onboarding-slider {
    position: absolute;
    inset: 0;
}

.onboarding-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-slide.active { opacity: 1; z-index: 2; }

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.top-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Vertical Centering */
    text-align: center;
    color: #fff;
}

.supreme-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.supreme-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.supreme-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
}

.dot.active {
    width: 20px;
    border-radius: 4px;
    background: var(--primary);
}

/* 2. BOTTOM SECTION (THEME ADAPTIVE) */
.login-bottom-section {
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 20px; /* Reduced bottom padding */
    z-index: 20;
}

.supreme-card-wrapper {
    width: 100%;
    max-width: 420px;
}

/* 1.5. CARD (THEME ADAPTIVE) */
.supreme-card.light-theme {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 20px 20px; /* Further reduced */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .supreme-card.light-theme {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Form Elements */
.supreme-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.supreme-input-group.light-input {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .supreme-input-group.light-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.supreme-input-group.light-input:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

[data-theme="dark"] .supreme-input-group.light-input:focus-within {
    background: rgba(255, 255, 255, 0.12);
}

.input-icon {
    font-size: 1.1rem;
    color: #8e8e93;
    margin-left: 12px;
}

.supreme-input-group.light-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #1c1c1e;
    font-size: 1rem;
    font-weight: 700;
    direction: rtl;
}

[data-theme="dark"] .supreme-input-group.light-input input {
    color: #ffffff;
}

.supreme-input-group.light-input input::placeholder {
    color: #8e8e93;
}

.pwd-toggle {
    background: none;
    border: none;
    color: var(--onboarding-lower-muted, #adb5bd);
    cursor: pointer;
    padding: 10px;
}

/* Submit Button */
.supreme-submit-btn {
    width: 100%;
    height: 64px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

/* PWA Install Button (Satin Style) */
.supreme-install-btn {
    width: 100%;
    padding: 16px 20px;
    background: var(--satin-bg) !important;
    backdrop-filter: var(--satin-blur) !important;
    -webkit-backdrop-filter: var(--satin-blur) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 5px;
}

.supreme-install-btn:hover {
    background: rgba(var(--primary-rgb), 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.supreme-install-btn:active {
    transform: translateY(0) scale(0.97);
}

.supreme-install-btn i {
    font-size: 1.3rem;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.supreme-install-btn span {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary) !important;
    letter-spacing: -0.3px;
}

[data-theme="dark"] .supreme-install-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .supreme-install-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
}

/* Links */
.supreme-footer-links {
    margin-top: 15px;
    text-align: center;
}

.supreme-footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Disclaimer */
.supreme-mini-disclaimer {
    margin-top: 15px; /* Reduced from 25px */
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
}

.supreme-mini-disclaimer p {
    color: #8e8e93;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

[data-theme="dark"] .supreme-mini-disclaimer p {
    color: #a1a1aa;
}

.external-link {
    color: var(--primary) !important;
    font-weight: 700;
    text-decoration: none;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 15px 0;
}

[data-theme="dark"] .footer-divider {
    background: rgba(255, 255, 255, 0.1);
}

.disclaimer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.78rem;
}

.v-sep {
    width: 1px;
    height: 10px;
    background: #dee2e6;
}

[data-theme="dark"] .v-sep {
    background: rgba(255, 255, 255, 0.2);
}

.disclaimer-links a {
    color: #495057; /* Explicit visible grey-dark */
    text-decoration: none;
    font-weight: 800;
}

[data-theme="dark"] .disclaimer-links a {
    color: #adb5bd;
}

.disclaimer-links .sep { color: #dee2e6; }

/* Error toast */
.login-error-toast {
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.15);
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    display: none;
}
