/* Login page — standalone, no register/bootstrap bleed */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-login-mode {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #000;
}

.auth-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    gap: clamp(2rem, 5vw, 4rem);
    padding: 2rem clamp(2rem, 6vw, 5rem);
    position: relative;
    isolation: isolate;
}

.auth-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.4) 100%),
        url('../images/city_night_bg.png') center/cover no-repeat;
}

.auth-login-brand {
    flex: 0 1 auto;
    width: auto;
    max-width: 260px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.auth-login-logo-ring {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    padding: 6px;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}

.auth-login-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #d4af37;
    padding: 7px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.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: clamp(1.35rem, 2.2vw, 1.75rem);
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    line-height: 1.15;
}

.auth-login-brand p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.3px;
}

.auth-login-form-wrap {
    flex: 0 1 auto;
    width: 100%;
    max-width: 270px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-login-card {
    width: 100%;
    max-width: 270px;
    text-align: center;
}

.auth-login-card .login-icon {
    font-size: 2.1rem;
    color: #fff;
    margin-bottom: 1.1rem;
    line-height: 1;
    opacity: 0.92;
}

.auth-login-field {
    position: relative;
    margin-bottom: 0.7rem;
}

.auth-login-field input {
    width: 100%;
    height: 40px;
    border: 1.5px solid #d4af37;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 0.82rem;
    padding: 0 2.25rem;
    outline: none;
    display: block;
    appearance: none;
    -webkit-appearance: none;
}

.auth-login-field input::placeholder {
    color: #999;
}

.auth-login-field input:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.auth-login-field .field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.85rem;
    pointer-events: none;
}

.auth-login-field .toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
}

.auth-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.65rem 0 1rem;
    font-size: 0.72rem;
}

.auth-login-options label {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    margin: 0;
}

.auth-login-options a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.auth-login-options a:hover {
    color: #fff;
}

.auth-login-submit {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: #d4af37;
    color: #111;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-login-submit:hover {
    background: #e0bc45;
}

.auth-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0 1rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-login-divider::before,
.auth-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-login-divider span {
    padding: 0 12px;
}

.auth-login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.auth-login-google-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.auth-login-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.auth-login-footer-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.auth-login-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.78rem;
}

.auth-login-footer a:hover {
    color: #fff;
}

.auth-login-alert {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
    text-align: left;
}

.auth-login-alert.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

/* Forgot password modal */
.auth-fp-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-fp-modal-card {
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

.auth-fp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.auth-fp-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #d4af37;
    font-size: 1.4rem;
}

.auth-fp-icon--ok {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.auth-fp-modal-card h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.auth-fp-success-title {
    color: #22c55e !important;
}

.auth-fp-modal-card p {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 20px;
    line-height: 1.5;
}

.auth-fp-input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.auth-fp-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.auth-fp-input-wrap input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 40px 12px 36px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.auth-fp-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.auth-fp-otp {
    width: 100%;
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 1.75rem;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    letter-spacing: 5px;
    margin-bottom: 16px;
    outline: none;
}

.auth-fp-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #d4af37;
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-fp-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.auth-fp-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: none;
}

.auth-fp-resend {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #888;
}

.auth-fp-resend a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.auth-fp-link {
    display: block;
    margin-top: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .auth-login-page {
        flex-direction: column;
        justify-content: center;
        max-width: 100%;
        gap: 1.75rem;
        padding: 2rem 1.25rem;
    }

    .auth-login-brand {
        max-width: 100%;
    }

    .auth-login-logo-ring {
        width: 100px;
        height: 100px;
        margin-bottom: 0.85rem;
    }

    .auth-login-form-wrap {
        max-width: 290px;
    }
}
