/* ==========================================================================
   AUTH PAGES - LUXURY DESIGN SYSTEM V3 (COMPREHENSIVE)
   Contains complete styles for:
   1. Daylight Apartment Login with White Card (media_1789491375175.png)
   2. Daylight Apartment Register with Split Layout (media_1789491375128.png)
   3. Luxury Night Penthouse OTP Verification (media_1789491375025.jpg)
   4. Luxury Night Penthouse Password Recovery (media_1789491375213.png)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --auth-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --auth-blue-50: #eff6ff;
    --auth-blue-100: #dbeafe;
    --auth-blue-500: #3b82f6;
    --auth-blue-600: #2563eb;
    --auth-blue-700: #1d4ed8;
    --auth-cyan-400: #38bdf8;
    --auth-dark-950: #060b17;
    --auth-dark-900: #0a1124;
    --auth-dark-850: #0d1730;
    --auth-card-bg: rgba(13, 23, 44, 0.88);
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-border-glow: rgba(56, 189, 248, 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    font-family: var(--auth-font);
    background-color: #f1f5f9;
    color: #0f172a;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. SPLIT LAYOUT (REGISTER & GENERAL)
   ========================================================================== */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-split-visual {
    width: 45%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 3.5rem;
    overflow: hidden;
}

.auth-split-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(15, 23, 42, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.auth-split-visual > * {
    position: relative;
    z-index: 2;
}

.auth-split-form-col {
    width: 55%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem;
}

.auth-form-inner {
    max-width: 460px;
    width: 100%;
}

.auth-form-inner.wide {
    max-width: 560px;
}

/* BRAND & BADGES */
.auth-brand-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    flex-shrink: 0;
}

.auth-blue-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.auth-title-large {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-accent-line {
    width: 38px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

/* FORM CONTROLS */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.auth-form-group {
    margin-bottom: 1.15rem;
    width: 100%;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.45rem;
}

.auth-glass-card .auth-label {
    color: #cbd5e1;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 12px 14px 12px 42px;
    font-family: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.auth-input.has-toggle {
    padding-right: 42px;
}

.auth-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input::placeholder {
    color: #94a3b8;
}

/* Glass inputs for dark pages */
.auth-glass-card .auth-input {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.auth-glass-card .auth-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.auth-glass-card .auth-input::placeholder {
    color: #64748b;
}

.auth-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.auth-btn-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 22px -4px rgba(37, 99, 235, 0.45);
    transition: all 0.25s ease;
    text-decoration: none;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px -4px rgba(37, 99, 235, 0.6);
}

.auth-btn-secondary {
    width: 100%;
    height: 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1.25rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider span {
    padding: 0 0.85rem;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* ==========================================================================
   2. LOGIN DAYLIGHT WITH WHITE CARD (MEDIA_1789491375175.PNG)
   ========================================================================== */
.login-daylight-wrapper {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3.5rem 5rem;
    position: relative;
}

.login-daylight-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.login-left-intro {
    max-width: 480px;
    z-index: 2;
    position: relative;
}

.login-left-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.login-left-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.login-blue-accent-bar {
    width: 44px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.login-left-desc {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.6;
    max-width: 420px;
}

.login-white-card-container {
    z-index: 2;
    position: relative;
    max-width: 440px;
    width: 100%;
}

.login-white-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.login-card-logo {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.login-card-logo svg {
    width: 48px;
    height: 48px;
}

.login-card-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.login-card-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.login-toggle-tabs {
    background: #eff3f8;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.login-tab-btn {
    flex: 1;
    padding: 9px 0;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.login-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.login-tab-btn.inactive {
    background: transparent;
    color: #64748b;
}

.login-tab-btn.inactive:hover {
    color: #1e293b;
}

.login-input-wrap {
    position: relative;
    margin-bottom: 1rem;
    text-align: left;
}

.login-input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px 12px 44px;
    font-family: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.login-input.has-eye {
    padding-right: 44px;
}

.login-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-input::placeholder {
    color: #94a3b8;
}

.login-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.login-eye-btn:hover {
    color: #1e293b;
}

.login-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    font-size: 0.85rem;
}

.login-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.login-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    border-radius: 4px;
    cursor: pointer;
}

.login-forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login-forgot-link:hover {
    text-decoration: underline;
}

.login-btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.45);
    transition: all 0.2s ease;
}

.login-btn-submit:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.6);
}

.login-btn-home {
    width: 100%;
    height: 46px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.login-btn-home:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* ==========================================================================
   3. GLASSMORPHIC DARK PAGES (OTP & FORGOT PASSWORD)
   ========================================================================== */
.auth-glass-container {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
}

.auth-glass-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 11, 23, 0.84) 0%, rgba(6, 11, 23, 0.94) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 1;
}

.auth-glass-container > * {
    position: relative;
    z-index: 2;
}

.auth-top-bar {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-glass-card {
    max-width: 480px;
    width: 100%;
    margin: auto;
    background: var(--auth-card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--auth-border-glow);
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(37, 99, 235, 0.15);
    text-align: center;
}

.auth-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.3);
    color: #38bdf8;
}

.auth-target-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.otp-boxes-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-box-input {
    width: 52px;
    height: 60px;
    font-size: 1.65rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.otp-box-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-2px);
}

.otp-timer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.otp-timer-text strong {
    color: #38bdf8;
    font-weight: 700;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .auth-split-wrapper {
        flex-direction: column;
    }
    .auth-split-visual {
        width: 100%;
        min-height: 320px;
        padding: 2.5rem 1.5rem;
    }
    .auth-split-form-col {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
    .login-daylight-wrapper {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        justify-content: center;
        gap: 2.5rem;
    }
    .login-left-intro {
        text-align: center;
        max-width: 100%;
    }
    .login-left-title {
        font-size: 2.25rem;
    }
    .login-blue-accent-bar {
        margin: 1rem auto;
    }
    .login-left-desc {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .auth-grid-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
