/* ============================================================
   LifeStyleMod – Auth Page (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Container ---------- */
.auth-container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* ---------- Glass Card ---------- */
.auth-glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139,92,246,0.1);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s ease forwards;
}
.auth-glass-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(ellipse at top left, rgba(139,92,246,0.05), transparent 60%);
    pointer-events: none;
}

/* ---------- Logo ---------- */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo .icon {
    font-size: clamp(48px, 12vw, 60px);
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(245,158,11,0.5));
}
.auth-logo h1 {
    font-size: clamp(24px, 8vw, 28px);
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ---------- Tabs ---------- */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
    border-radius: 12px;
    font-family: inherit;
}
.tab-btn:hover {
    color: #cbd5e1;
    background: rgba(139,92,246,0.08);
}
.tab-btn.active {
    background: rgba(139,92,246,0.12);
    color: #c4b5fd;
    position: relative;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
    border-radius: 3px;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp 0.3s ease forwards; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 20px; }
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #e2e8f0;
}
input[type="text"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.15s, box-shadow 0.15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    border-color: rgba(139,92,246,0.7);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
    background: rgba(15, 23, 42, 0.9);
}
input::placeholder { color: #64748b; }

.hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Checkbox */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    cursor: pointer;
}
.remember-row input[type="checkbox"] { display: none; }
.custom-checkbox {
    width: 22px; height: 22px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    position: relative;
    transition: all 0.25s ease;
    background: rgba(15,23,42,0.6);
    flex-shrink: 0;
}
.remember-row input:checked + .custom-checkbox {
    background: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139,92,246,0.4);
}
.custom-checkbox::after {
    content: '';
    position: absolute;
    top: 2px; left: 6px;
    width: 6px; height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.remember-row input:checked + .custom-checkbox::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}
.remember-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    user-select: none;
}

/* Buttons */
.auth-btn-primary, .btn-otp {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    border: none;
    padding: 14px;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}
.auth-btn-primary:hover, .btn-otp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139,92,246,0.5);
}
.auth-btn-primary:active, .btn-otp:active { transform: translateY(0); }
.btn-otp-secondary {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    box-shadow: none;
}

/* Flash messages */
.flash-message {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    text-align: center;
    color: #fca5a5;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
}
.flash-success {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.2);
    color: #6ee7b7;
}

/* Captcha */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 10px 16px;
}
.captcha-box span {
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.1rem;
    min-width: 80px;
}
.captcha-box input {
    flex: 1;
    text-align: center;
    font-weight: 600;
    background: rgba(15,23,42,0.8);
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.captcha-box input:focus {
    border-color: rgba(139,92,246,0.7);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

/* Phone verify section */
#phoneVerifySection { display: none; margin-top: 10px; }
#codeSection { margin-top: 15px; }

/* Support links */
.support-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.btn-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 40px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139,92,246,0.2);
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
}
.btn-support:hover {
    background: rgba(139,92,246,0.15);
    border-color: #8b5cf6;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(139,92,246,0.2);
}

/* Browser warning */
.browser-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #fbbf24;
    font-size: 0.85rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}
.links a:hover { color: #fbbf24; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    .auth-glass-card { padding: 28px 20px; }
    .auth-tabs { gap: 6px; }
    .tab-btn { font-size: 0.9rem; padding: 10px; }
}