/* ============================================================
   DUBAI LISTINGS — SIGN IN / AUTHENTICATION PAGE
   Official Luxury Floating Layout on Dubai Skyline
   ============================================================ */

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

body.auth-login-mode {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
}

/* --- DUBAI SKYLINE BACKGROUND --- */
.auth-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.52)),
        url('../images/hero_bg_update.webp') center center / cover no-repeat;
    background-attachment: fixed;
}

/* --- MAIN PAGE CONTAINER --- */
.auth-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

/* --- LEFT PANEL: LOGO & SLOGAN --- */
.auth-login-brand {
    flex: 0 1 380px;
    max-width: 400px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    background: transparent;
}

.auth-login-logo-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid #D4AF37;
    padding: 5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.auth-login-logo-ring:hover {
    transform: scale(1.03);
}

.auth-login-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.auth-login-logo-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-login-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin: 0 0 6px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.auth-login-brand .brand-slogan {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
    letter-spacing: 0.6px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* --- RIGHT PANEL: FORM (SLEEK, ULTRA COMPACT FLOATING) --- */
.auth-login-form-wrap {
    flex: 0 1 300px;
    width: 100%;
    max-width: 300px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.auth-login-card {
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: left;
}

.auth-login-card-header {
    text-align: center;
    margin-bottom: 14px;
}

.auth-login-card .login-icon {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

/* --- INPUT FIELDS --- */
.auth-login-field {
    position: relative;
    margin-bottom: 11px;
}

.auth-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-login-input-wrap input {
    width: 100%;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    padding: 0 35px 0 38px;
    font-size: 13px;
    color: #111111;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.auth-login-input-wrap input::placeholder {
    color: #888888;
    font-size: 12.5px;
}

.auth-login-input-wrap input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
    background: #FFFFFF;
}

.auth-login-field .field-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
}

.auth-login-field .field-icon::after {
    content: '';
    position: absolute;
    right: 0;
    top: 9px;
    bottom: 9px;
    width: 1px;
    background: #E5E7EB;
}

.auth-login-field .toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    z-index: 5;
    transition: color 0.2s ease;
}

.auth-login-field .toggle-pass:hover {
    color: #111111;
}

/* --- OPTIONS ROW --- */
.auth-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 13px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.88);
}

.auth-login-options label {
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.auth-login-options input[type="checkbox"] {
    accent-color: #D4AF37;
    width: 13px;
    height: 13px;
    cursor: pointer;
}

.auth-login-options a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.auth-login-options a:hover {
    color: #D4AF37;
}

/* --- PRIMARY BUTTON: LOGIN --- */
.auth-login-submit {
    width: 100%;
    height: 38px;
    background: #D4AF37;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.35);
    font-family: inherit;
}

.auth-login-submit:hover {
    background: #E5C358;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(212, 175, 55, 0.5);
}

.auth-login-submit:active {
    transform: translateY(0);
}

/* --- DIVIDER --- */
.auth-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 0 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

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

.auth-login-divider span {
    padding: 0 8px;
}

/* --- GOOGLE BUTTON --- */
.auth-login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-login-google-btn svg {
    width: 15px;
    height: 15px;
}

.auth-login-google-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: #D4AF37;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

/* --- FOOTER LINKS --- */
.auth-login-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
}

.auth-login-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-login-footer a:hover {
    color: #FFFFFF;
}

.auth-login-footer-sep {
    color: rgba(255, 255, 255, 0.35);
}

/* --- ALERTS --- */
.auth-login-alert {
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #FCA5A5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.auth-login-alert.success {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    color: #86EFAC;
}

/* --- FORGOT PASSWORD MODAL --- */
.auth-fp-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-fp-modal-card {
    background: rgba(18, 18, 22, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 34px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
}

.auth-fp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.auth-fp-close:hover {
    color: #D4AF37;
}

.auth-fp-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #D4AF37;
    font-size: 1.45rem;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.auth-fp-icon--ok {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #22C55E;
}

.auth-fp-modal-card h3 {
    color: #FFFFFF;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.auth-fp-success-title {
    color: #22C55E !important;
}

.auth-fp-modal-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    margin: 0 0 20px;
    line-height: 1.5;
}

.auth-fp-input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.auth-fp-input-wrap input {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid #D4AF37;
    border-radius: 8px;
    padding: 12px 14px;
    color: #000000;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.auth-fp-input-wrap input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

.auth-fp-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777777;
    cursor: pointer;
    padding: 0;
}

.auth-fp-eye:hover {
    color: #000000;
}

.auth-fp-otp {
    width: 100%;
    background: #FFFFFF;
    border: 2px solid #D4AF37;
    color: #000000;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    letter-spacing: 6px;
    margin-bottom: 16px;
    outline: none;
}

.auth-fp-otp:focus {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.4);
}

.auth-fp-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #D4AF37;
    color: #000000;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: all 0.2s;
}

.auth-fp-btn:hover {
    background: #E5C358;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.auth-fp-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.auth-fp-error {
    color: #EF4444;
    font-size: 0.82rem;
    margin-bottom: 12px;
    display: none;
}

.auth-fp-resend {
    margin-top: 14px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.auth-fp-resend a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
}

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

.auth-fp-link {
    display: block;
    margin-top: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    cursor: pointer;
    font-weight: 500;
}

.auth-fp-link:hover {
    color: #D4AF37;
}

/* --- RESPONSIVE RULES --- */
@media (max-width: 860px) {
    body.auth-login-mode {
        overflow-y: auto !important;
        height: auto !important;
    }

    .auth-login-page {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 18px !important;
        padding: 30px 16px !important;
        min-height: 100vh;
    }

    .auth-login-brand {
        flex: none !important;
        width: 100% !important;
        max-width: 300px !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 auto;
    }

    .auth-login-logo-ring {
        width: 76px !important;
        height: 76px !important;
        padding: 4px !important;
        border-width: 2px !important;
        margin: 0 auto 10px auto !important;
    }

    .auth-login-brand h1 {
        font-size: 22px !important;
        letter-spacing: 1.4px !important;
        margin-bottom: 4px !important;
    }

    .auth-login-brand .brand-slogan {
        font-size: 11.5px !important;
        letter-spacing: 0.5px !important;
    }

    .auth-login-form-wrap {
        flex: none !important;
        max-width: 300px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 20px 18px !important;
        background: rgba(8, 8, 12, 0.65) !important;
        border: 1px solid rgba(212, 175, 55, 0.22) !important;
        border-radius: 12px !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
    }

    .auth-login-card .login-icon {
        font-size: 26px !important;
        margin-bottom: 12px !important;
    }

    .auth-login-card-header {
        margin-bottom: 12px !important;
    }

    .auth-login-field {
        margin-bottom: 10px !important;
    }

    .auth-login-input-wrap input {
        height: 38px !important;
        font-size: 13px !important;
    }

    .auth-login-submit {
        height: 38px !important;
        font-size: 13px !important;
    }

    .auth-login-google-btn {
        height: 36px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 360px) {
    .auth-login-page {
        padding: 20px 10px !important;
        gap: 12px !important;
    }

    .auth-login-form-wrap {
        padding: 16px 14px !important;
    }

    .auth-login-brand h1 {
        font-size: 20px !important;
    }
}

