/* Authentication Theme - Ultra Premium Luxury (Zara/Apple Inspired) */
:root {
    --auth-glass: rgba(255, 255, 255, 0.75);
    --auth-blur: blur(20px);
    --auth-gold: #C9973A;
    --auth-gold-grad: linear-gradient(135deg, #C9973A 0%, #E1AE4E 100%);
    --warm-bg: radial-gradient(circle at center, #ffffff 0%, #fdfbf7 100%);
    --apple-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-page {
    background: var(--warm-bg);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.auth-bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(201, 151, 58, 0.03), transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(201, 151, 58, 0.05), transparent 40%);
    z-index: -1;
}

/* Auth Main Layout */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Premium Login Card - Layered Shadows */
.auth-card-premium {
    width: 100%;
    max-width: 460px;
    background: var(--auth-glass);
    backdrop-filter: var(--auth-blur);
    -webkit-backdrop-filter: var(--auth-blur);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.01),
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        0 20px 50px -12px rgba(201, 151, 58, 0.1);
    position: relative;
    transition: transform 0.5s var(--apple-ease), box-shadow 0.5s var(--apple-ease);
}

.auth-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(201, 151, 58, 0.15);
}

.brand-line {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--auth-gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.auth-title-serif {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.1;
}

.auth-subtitle-glass {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Floating Label Inputs */
.input-floating-group {
    position: relative;
    margin-bottom: 24px;
}

.input-floating-group label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s var(--apple-ease);
    font-size: 0.95rem;
}

.auth-glass-input {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px 20px 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s var(--apple-ease);
    display: block;
}

/* Fix for Chrome Autofill turning inputs blue */
.auth-glass-input:-webkit-autofill,
.auth-glass-input:-webkit-autofill:hover, 
.auth-glass-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 50px white inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

.auth-glass-input:focus {
    border-color: var(--auth-gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(201, 151, 58, 0.08);
}

.input-floating-group label {
    position: absolute;
    left: 20px;
    top: 18px; /* Initial centered position */
    color: #999;
    pointer-events: none;
    transition: all 0.25s var(--apple-ease);
    font-size: 1rem;
}

/* Floating logic: When focused OR when NOT showing placeholder (meaning there is text) */
.auth-glass-input:focus + label,
.auth-glass-input:not(:placeholder-shown) + label {
    top: 6px !important;
    font-size: 0.7rem !important;
    color: var(--auth-gold) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Password Toggle Alignment */
.pass-toggle-refined {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-40%); /* Slightly adjusted for better visual center with label above */
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    z-index: 5;
    transition: color 0.3s ease;
}

.pass-toggle-refined:hover {
    color: var(--auth-gold);
}

/* Remember Me & Forgot Password Row */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 0 2px;
}

.remember-me-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.remember-me-container input {
    accent-color: var(--auth-gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link-refined {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s var(--apple-ease);
}

.forgot-link-refined:hover {
    color: var(--auth-gold);
}

/* CTA Button */
.btn-auth-luxury {
    width: 100%;
    padding: 18px;
    background: var(--auth-gold-grad);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s var(--apple-ease);
    box-shadow: 0 10px 20px rgba(201, 151, 58, 0.2);
}

.btn-auth-luxury:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 151, 58, 0.3);
    filter: brightness(1.1);
}

.auth-switch {
    margin-top: 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--auth-gold);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.auth-switch a:hover::after {
    transform: scaleX(0.7);
}

/* Social Buttons */
.social-btn {
    background: #fff !important;
    border: 1px solid #eee !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer;
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--auth-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Social Login Placeholder */
.social-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(201, 151, 58, 0.1);
}
