/* CheapCord Modern Auth & Public Pages */
:root {
    --bg: #050505;
    --bg-card: #0a0a0a;
    --bg-input: #0f0f0f;
    --accent: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --text: #ffffff;
    --text-dim: #71717a;
    --border: #1f1f1f;
    --error: #ef4444;
    --success: #22c55e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ========================================
   Animations
======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes border-glow {
    0%, 100% { border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 0 20px rgba(139, 92, 246, 0.1); }
    50% { border-color: rgba(236, 72, 153, 0.3); box-shadow: 0 0 30px rgba(236, 72, 153, 0.15); }
}

/* ========================================
   Background Orbs
======================================== */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-glow 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
    top: -150px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
}

/* ========================================
   Auth Container
======================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    animation: slide-up 0.6s ease-out, border-glow 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-pink), transparent);
    opacity: 0.5;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header img {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    animation: float 4s ease-in-out infinite;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    font-size: 15px;
    color: var(--text-dim);
}

/* ========================================
   Forms
======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text);
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 0 30px rgba(139, 92, 246, 0.1);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.form-footer a {
    font-size: 13px;
    color: var(--accent);
    transition: all 0.3s;
    font-weight: 500;
}

.form-footer a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.recaptcha-container .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 400px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
    }
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    width: 100%;
    padding: 18px 28px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ========================================
   Messages
======================================== */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
    animation: slide-up 0.4s ease-out;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
    animation: slide-up 0.4s ease-out;
}

.info-message {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

/* ========================================
   Auth Footer & Links
======================================== */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    color: var(--text-dim);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s;
}

.auth-footer a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.terms-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 16px;
}

.terms-note a {
    color: var(--accent);
}

.terms-note a:hover {
    text-decoration: underline;
}

/* ========================================
   Content Pages (Terms)
======================================== */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.content-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 56px;
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-pink), transparent);
    opacity: 0.5;
}

.content-card h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 36px;
    background: linear-gradient(135deg, var(--text), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 18px;
    color: var(--text);
}

.content-card p {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-card ul, .content-card ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content-card li {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-card a {
    color: var(--accent);
    transition: color 0.3s;
}

.content-card a:hover {
    color: var(--accent-pink);
}

/* ========================================
   Checkbox
======================================== */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-dim);
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .auth-container {
        padding: 80px 16px 32px;
    }
    
    .auth-card {
        padding: 36px 28px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .content-container {
        padding: 100px 16px 40px;
    }
    
    .content-card {
        padding: 36px 24px;
    }
    
    .content-card h1 {
        font-size: 28px;
    }
}
