/* assets/css/auth.css - Premium Luxury Glassmorphism Theme for Takshora Auth Pages */

:root {
    --auth-bg-dark: #120c0a;
    --auth-bg-card: rgba(26, 18, 15, 0.65);
    --gold-primary: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --gold-dim: #b8972f;
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: #a69e9a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

body.auth-body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 30%, #2c1a12 0%, #120c0a 100%);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
}

/* Background Decorative Lights */
body.auth-body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
    pointer-events: none;
}

body.auth-body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(141, 110, 99, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    z-index: 0;
    pointer-events: none;
}

/* Header */
.auth-header-bar {
    position: relative;
    z-index: 10;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-header-bar .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.auth-header-bar .logo-img {
    height: 45px;
    border-radius: 6px;
    border: 1px solid var(--gold-primary);
}

.auth-header-bar .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-white);
    letter-spacing: 2px;
    font-weight: 700;
}

.auth-header-bar .logo-text span {
    color: var(--gold-primary);
}

.back-to-store {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.back-to-store:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

/* Split Main Container */
.auth-main-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
}

/* Premium Card Design */
.auth-glass-card {
    background: var(--auth-bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.auth-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.card-title-area {
    text-align: center;
    margin-bottom: 40px;
}

.card-title-area h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 500;
}

.card-title-area p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Floating Label Inputs */
.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.auth-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 16px 16px 16px 50px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.auth-input:focus + i {
    color: var(--gold-primary);
}

/* Form Helper Links */
.auth-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    cursor: pointer;
    accent-color: var(--gold-primary);
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Premium Button */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dim) 100%);
    color: #120c0a;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #f1c40f 0%, var(--gold-primary) 100%);
}

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

/* Card Footer Links */
.auth-card-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-card-footer a {
    color: var(--gold-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-card-footer a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Admin Portal Entrance */
.admin-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3) !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.admin-portal-link:hover {
    color: var(--gold-primary) !important;
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.03);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-header-bar {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .auth-glass-card {
        padding: 30px 16px;
        margin: 10px;
    }
    .card-title-area h2 {
        font-size: 1.85rem !important;
    }
}

/* Show Password Toggler */
.toggle-password {
    position: absolute;
    right: 18px;
    left: auto !important; /* Overrides left: 18px from .input-wrapper i */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--gold-primary);
}

.auth-input-password {
    padding-right: 50px !important;
}
