/* 
 * Auth Common CSS - Premium Money Making Theme
 * Supports: login.php, introducer.php, forgot.php, forgotid.php
 */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Money Making Theme */
:root {
    /* Premium Gold & Money Colors */
    --primary: #FFD700;      /* Pure Gold */
    --primary-dark: #B8860B; /* Dark Gold */
    --primary-light: #FFF8DC; /* Light Gold/Cream */
    --secondary: #00C851;    /* Money Green */
    --accent: #FF6B35;       /* Orange (Call to action) */
    
    /* Success & Money Colors */
    --success-green: #28A745;
    --success-dark: #1E7E34;
    --money-green: #85BB65;
    --dollar-green: #00A86B;
    
    /* Luxury Dark Theme */
    --dark: #0A0A0A;
    --grey-900: #141414;
    --grey-800: #1F1F1F;
    --grey-700: #2A2A2A;
    --grey-600: #3A3A3A;
    --grey-500: #6B6B6B;
    --grey-400: #9CA3AF;
    --grey-300: #D1D5DB;
    --grey-200: #E5E7EB;
    --grey-100: #F3F4F6;
    --grey-50: #F9FAFB;
    --white: #FFFFFF;
    
    /* Premium Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    --gradient-money: linear-gradient(135deg, #00C851 0%, #00A86B 100%);
    --gradient-luxury: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #0A0A0A 100%);
    --gradient-premium: linear-gradient(135deg, #FFD700 0%, #B8860B 50%, #996515 100%);
    --gradient-dark-gold: linear-gradient(135deg, #B8860B 0%, #996515 50%, #704214 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Premium Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 10px 40px -10px rgba(255, 215, 0, 0.4);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey-100);
    background: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--gradient-luxury);
    position: relative;
    overflow: hidden;
}

/* Money Background Pattern */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 81, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(184, 134, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Dollar Signs Animation */
.auth-page::after {
    content: '$$$';
    position: absolute;
    font-size: 200px;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.02);
    top: -50px;
    right: -100px;
    transform: rotate(-15deg);
    pointer-events: none;
    animation: floatMoney 20s ease-in-out infinite;
}

@keyframes floatMoney {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-30px); }
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Auth Card */
.auth-card {
    background: var(--grey-900);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 600px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
}

/* Gold Glow Effect */
.auth-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-gold);
    border-radius: var(--radius-2xl);
    opacity: 0.3;
    z-index: -1;
    animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@media (min-width: 768px) {
    .auth-card {
        grid-template-columns: 5fr 7fr;
    }
}

/* Hero Section (Left Side) */
.auth-hero {
    background: var(--gradient-premium);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

/* Money Pattern Background */
.auth-hero::before {
    content: '';
    position: absolute;
    inset: -50%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0, 0, 0, 0.1) 35px, rgba(0, 0, 0, 0.1) 70px),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    animation: movePattern 30s linear infinite;
}

@keyframes movePattern {
    to { transform: translate(70px, 70px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    font-weight: 500;
}

.hero-features {
    margin-top: var(--space-2xl);
    display: grid;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form Section (Right Side) */
.auth-form-section {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--grey-900);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.form-logo {
    display: none; /* Show only on mobile */
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.form-subtitle {
    color: var(--grey-400);
    font-size: 0.975rem;
}

/* Form Styles */
.auth-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: var(--space-lg);
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--grey-300);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--grey-700);
    border-radius: var(--radius-lg);
    background: var(--grey-800);
    color: var(--grey-100);
    transition: all var(--transition-base);
    outline: none;
}

.form-input:hover {
    border-color: var(--grey-600);
    background: rgba(42, 42, 42, 0.8);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background: var(--grey-800);
}

.form-input::placeholder {
    color: var(--grey-500);
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.125rem;
    pointer-events: none;
    transition: color var(--transition-base);
}

.input-with-icon .form-input {
    padding-left: 2.75rem;
}

.input-with-icon:focus-within .input-icon {
    color: var(--primary-light);
}

/* Select Dropdown */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FFD700' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - var(--space-md)) center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Readonly Input */
.form-input[readonly] {
    background-color: var(--grey-800);
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--grey-700);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--grey-400);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.checkbox-label a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: 0 4px 14px 0 rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(255, 215, 0, 0.6);
    filter: brightness(1.1);
}

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

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

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

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.0625rem;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: var(--space-xl);
}

.form-footer-text {
    color: var(--grey-400);
    font-size: 0.875rem;
}

.form-footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.form-footer-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Alert Messages */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #FF6B6B;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFD700;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #51CF66;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-info {
    background-color: rgba(0, 123, 255, 0.1);
    color: #339AF0;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Success Screen */
.success-screen {
    padding: var(--space-2xl);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.success-checkmark {
    width: 100%;
    height: 100%;
    background: var(--gradient-money);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 200, 81, 0.4);
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark i {
    font-size: 3rem;
    color: white;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.success-message {
    color: var(--grey-300);
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
}

/* Credentials Card */
.credentials-card {
    background: var(--grey-800);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: 0 auto var(--space-xl);
    max-width: 400px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--grey-700);
}

.credential-row:last-child {
    border-bottom: none;
}

.credential-label {
    font-size: 0.875rem;
    color: var(--grey-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-value {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Monaco', 'Courier New', monospace;
    background: var(--grey-900);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey-700);
}

/* Info Box */
.info-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.info-box-icon {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-box-text {
    color: var(--primary-light);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .auth-page {
        padding: var(--space-md);
    }
    
    .auth-card {
        grid-template-columns: 1fr;
    }
    
    .auth-hero {
        padding: var(--space-xl) var(--space-lg);
        min-height: 200px;
    }
    
    .hero-logo {
        width: 80px;
        height: 80px;
        margin-bottom: var(--space-lg);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        display: none;
    }
    
    .auth-form-section {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .form-logo {
        display: block;
        width: 80px;
        margin: 0 auto var(--space-lg);
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-grid {
        gap: var(--space-md);
    }
    
    .success-screen {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .credentials-card {
        padding: var(--space-md);
    }
    
    .credential-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .credential-value {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

/* Loading State */
.btn-loading {
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--dark);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .auth-hero,
    .no-print {
        display: none !important;
    }
    
    .auth-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.hidden { display: none !important; } 