:root {
    var(--bg-dark): #020617;
    --primary: #ff3366; 
    --accent-gradient: linear-gradient(135deg, #ff3366 0%, #ff758c 100%);
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background-color: #020617;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Background Animation */
.bg-animations { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.floating-heart {
    position: absolute; width: 32px; height: 32px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 51, 102, 1) 0%, rgba(255, 51, 102, 0.3) 50%, transparent 80%);
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    animation: floatUp 22s infinite linear;
}
@keyframes floatUp {
    0% { transform: translateY(105vh) scale(0.7) translateZ(0); opacity: 0; }
    15% { opacity: 0.85; } 85% { opacity: 0.85; }
    100% { transform: translateY(-15vh) scale(1.3) translateZ(0); opacity: 0; }
}
.fh-1 { left: 10%; animation-duration: 20s; } .fh-2 { left: 30%; animation-duration: 26s; animation-delay: 3s; }
.fh-3 { left: 50%; animation-duration: 18s; animation-delay: 1s; }

/* Layout */
.auth-container { width: 100%; max-width: 440px; padding: 20px; z-index: 10; }
.brand-header { text-align: center; margin-bottom: 30px; }
.brand-header .logo { font-size: 2.2rem; font-weight: 800; color: #fff; text-decoration: none; }
.brand-header .logo i { color: var(--primary); }
.brand-header p { color: var(--text-dim); margin-top: 8px; font-size: 1.1rem; }

/* Glass Card */
.glass {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    border-radius: 24px; padding: 40px; overflow: hidden;
}

.auth-view { display: none; }
.auth-view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h2 { text-align: center; margin-bottom: 24px; font-size: 1.8rem; }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.d-none { display: none !important; }

/* Inputs */
.input-group { position: relative; margin-bottom: 16px; }
.input-group i:first-child { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.input-group input {
    width: 100%; padding: 14px 14px 14px 45px; border-radius: 12px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 1rem; outline: none; transition: border 0.3s;
}
.input-group input:focus { border-color: var(--primary); }
.toggle-password { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); cursor: pointer; }

/* Buttons */
button { padding: 14px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; cursor: pointer; border: none; transition: all 0.3s; }
.btn-primary { background: var(--accent-gradient); color: #fff; }
.btn-primary:hover { box-shadow: 0 5px 15px rgba(255,51,102,0.4); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-google { background: #fff; color: #000; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-google:hover { background: #f0f0f0; transform: translateY(-2px); }

/* Password Rules */
.password-requirements { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 16px; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 12px; }
.password-requirements p { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.password-requirements p.valid { color: #10b981; }
.password-requirements i.fa-circle-check { color: #10b981; }
.password-requirements i.fa-circle-xmark { color: var(--primary); }

/* Utils */
.divider { text-align: center; margin: 24px 0; color: var(--text-dim); font-size: 0.9rem; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: rgba(255,255,255,0.1); }
.divider::before { left: 0; } .divider::after { right: 0; }
.auth-options { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 20px; color: var(--text-dim); }
.auth-options a, .auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-footer { text-align: center; font-size: 0.95rem; margin-top: 20px; color: var(--text-dim); }
.cf-turnstile { margin-bottom: 20px; display: flex; justify-content: center; }

/* Toasts */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); color: #fff; padding: 16px 20px; border-radius: 12px; border-left: 4px solid var(--primary); display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: slideInRight 0.3s forwards; }
.toast.success { border-color: #10b981; }
.toast i { font-size: 1.2rem; }
.toast.fade-out { animation: fadeOutRight 0.4s forwards; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOutRight { to { transform: translateX(100%); opacity: 0; } }
