/* ===== CSS VARIABLES ===== */
:root {
    /* Crypto Dark Theme Colors */
    --primary-color: #00d4aa;
    --primary-dark: #00b894;
    --primary-light: #00f5d4;
    --secondary-color: #6366f1;
    --accent-color: #f59e0b;
    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* Dark Theme Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    /* Dark Theme Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-gradient: linear-gradient(135deg, #00d4aa 0%, #6366f1 100%);
    --bg-card: #1e293b;
    --bg-input: #334155;
    
    /* Dark Theme Borders */
    --border-color: #334155;
    --border-light: #475569;
    --border-input: #475569;
    
    /* Enhanced Shadows for Dark Theme */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.3);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOADER STYLES ===== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: particleFloat 8s ease-in-out infinite;
}

.loader-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

.loader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.loader-logo {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.loader-logo img {
    width: 120px;
    height: 120px;
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
    object-fit: contain;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: logoGlow 2s ease-in-out infinite;
}

.loader-text {
    margin-bottom: 3rem;
}

.loader-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: titleGlow 2s ease-in-out infinite;
}

.loader-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.8;
    animation: subtitleFloat 3s ease-in-out infinite;
}

.loader-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.crypto-chart {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 80px;
}

.chart-line {
    width: 8px;
    background: var(--bg-gradient);
    border-radius: 4px;
    animation: chartAnimate 2s ease-in-out infinite;
}

.chart-line:nth-child(1) {
    height: 30px;
    animation-delay: 0s;
}

.chart-line:nth-child(2) {
    height: 60px;
    animation-delay: 0.2s;
}

.chart-line:nth-child(3) {
    height: 45px;
    animation-delay: 0.4s;
}

.chart-line:nth-child(4) {
    height: 75px;
    animation-delay: 0.6s;
}

.chart-line:nth-child(5) {
    height: 55px;
    animation-delay: 0.8s;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(0, 212, 170, 0.1);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: url(#authProgressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    animation: progressFill 3s ease-in-out forwards;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.progress-symbol {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.loader-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: statusSlideIn 0.5s ease-out forwards;
}

.status-item:nth-child(1) {
    animation-delay: 0.5s;
}

.status-item:nth-child(2) {
    animation-delay: 1s;
}

.status-item:nth-child(3) {
    animation-delay: 1.5s;
}

.status-item i {
    color: var(--primary-color);
    font-size: 1rem;
    animation: statusIconPulse 2s ease-in-out infinite;
}

.status-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== LOADER ANIMATIONS ===== */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.6));
    }
}

@keyframes subtitleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes chartAnimate {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

@keyframes progressFill {
    0% {
        stroke-dashoffset: 339.292;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes statusSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes statusIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Crypto Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== BACK TO HOME BUTTON ===== */
.back-to-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.btn-back:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-back i {
    font-size: 1rem;
    transition: var(--transition);
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* ===== MAIN CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== AUTH CARD ===== */
.auth-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    position: relative;
    min-height: 600px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* ===== LOGIN PANEL (LEFT SIDE) ===== */
.login-panel {
    flex: 1;
    background: var(--bg-card);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-right: 1px solid var(--border-color);
}

.panel-content {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}

.logo img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== REGISTRATION PANEL (RIGHT SIDE) ===== */
.registration-panel {
    flex: 1;
    background: var(--bg-card);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    border-left: 1px solid var(--border-color);
}

.welcome-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===== OVERLAY PANEL ===== */
.overlay-panel {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    transform: translateX(0);
    transition: var(--transition);
    z-index: 3;
}

.auth-card.show-registration .overlay-panel {
    transform: translateX(-100%);
}

/* ===== PANEL SWITCHING STYLES ===== */
.login-panel.active {
    z-index: 2;
}

.registration-panel.active {
    z-index: 2;
}

.overlay-panel.right-active {
    transform: translateX(-100%);
}

.overlay-content {
    text-align: center;
    color: var(--text-white);
}

.overlay-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.overlay-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== FORM STYLES ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 2;
    transition: var(--transition);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-input);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2), var(--shadow-glow);
    background: var(--bg-tertiary);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i {
    color: var(--primary-color);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Registration panel input styling */
.registration-panel .input-wrapper input,
.registration-panel .input-wrapper select {
    background: var(--bg-input);
    border-color: var(--border-input);
    color: var(--text-primary);
}

.registration-panel .input-wrapper input:focus,
.registration-panel .input-wrapper select:focus {
    border-color: var(--primary-color);
    background: var(--bg-input);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2), var(--shadow-glow);
}

/* ===== PASSWORD TOGGLE ===== */
.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* ===== SPONSOR VALIDATION ===== */
.sponsor-info,
.sponsor-error {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
}

.sponsor-info.show,
.sponsor-error.show {
    display: flex;
}

.sponsor-info {
    background: rgba(0, 212, 170, 0.2);
    border: 1px solid rgba(0, 212, 170, 0.5);
    color: var(--text-white);
    backdrop-filter: blur(5px);
}

.sponsor-info span {
    color: var(--text-white);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.sponsor-info i {
    color: var(--text-white);
    font-size: 1.1rem;
}

.sponsor-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
    backdrop-filter: blur(5px);
}

.sponsor-error span {
    color: var(--error-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.sponsor-error i {
    color: var(--error-color);
    font-size: 1.1rem;
}

/* ===== SPONSOR INACTIVE WARNING ===== */
.sponsor-inactive {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    animation: slideIn 0.3s ease;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    backdrop-filter: blur(5px);
    line-height: 1.4;
}

.sponsor-inactive span {
    color: #fbbf24;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.sponsor-inactive i {
    color: #f59e0b;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ===== OTP SECTION ===== */
.otp-group {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    backdrop-filter: blur(5px);
}

.send-otp-btn,
.verify-otp-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-otp-btn:hover,
.verify-otp-btn:hover {
    background: var(--primary-dark);
}

.send-otp-btn:disabled,
.verify-otp-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.send-otp-btn.loading,
.verify-otp-btn.loading {
    background: var(--text-muted);
    cursor: not-allowed;
}

.otp-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
}

.resend-btn:hover {
    color: var(--primary-dark);
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

/* ===== EMAIL VERIFIED TEXT ===== */
.email-verified-text {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.3s ease-in-out;
}

.email-verified-text::before {
    content: '✓';
    font-weight: bold;
    font-size: 16px;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33.33%;
    background: var(--error-color);
}

.strength-fill.medium {
    width: 66.66%;
    background: var(--warning-color);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success-color);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== CHECKBOX STYLES ===== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    background: var(--bg-primary);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* ===== LEGAL AGREEMENTS STYLING ===== */
.legal-agreements {
    margin-bottom: 1.5rem;
}

.additional-legal-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--border-radius);
    background: rgba(0, 212, 170, 0.05);
    transition: var(--transition);
}

.legal-link:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.legal-link i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* ===== BUTTON STYLES ===== */
.btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

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

.btn-login:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-register {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

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

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

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-overlay {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-overlay:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== FORM OPTIONS ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===== SUCCESS MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    animation: slideInUp 0.5s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.success-animation {
    margin-bottom: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease 0.2s both;
}

.success-icon i {
    font-size: 2rem;
    color: white;
}

.credentials {
    background: var(--bg-input);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.credential-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.credential-item .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.credential-item .value {
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Error Modal Styles */
.error-animation {
    margin-bottom: 2rem;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: var(--error-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease 0.2s both;
}

.error-icon i {
    font-size: 2rem;
    color: white;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cryptoGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.auth-card {
    animation: float 6s ease-in-out infinite;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .back-to-home {
        top: 1rem;
        left: 1rem;
    }
    
    .btn-back {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .logo img {
        width: 120px;
        height: 120px;
        border-radius: 0;
    }
    
    body {
        padding: 1rem;
    }
    
    .auth-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .login-panel,
    .registration-panel {
        padding: 2rem;
    }
    
    .overlay-panel {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .form-section h2,
    .welcome-section h2,
    .overlay-section h2 {
        font-size: 2rem;
    }
    
    .form-section h3 {
        font-size: 1.75rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .additional-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-link {
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .back-to-home {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .btn-back {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .logo img {
        width: 100px;
        height: 100px;
        border-radius: 0;
    }
    
    .login-panel,
    .registration-panel {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .logo i {
        font-size: 1.75rem;
    }
    
    .form-section h2,
    .welcome-section h2,
    .overlay-section h2 {
        font-size: 1.75rem;
    }
    
    .form-section h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .input-wrapper input,
    .input-wrapper select {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 0.95rem;
    }
    
    .input-wrapper i {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-icon i {
        font-size: 1.5rem;
    }
    
    .additional-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-link {
        justify-content: center;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .legal-link i {
        font-size: 0.75rem;
    }
}

/* ===== LOADER RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .loader-content {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .loader-logo img {
        width: 100px;
        height: 100px;
        border-radius: 0;
    }
    
    .logo-glow {
        width: 120px;
        height: 120px;
    }
    
    .loader-title {
        font-size: 2rem;
    }
    
    .loader-subtitle {
        font-size: 1rem;
    }
    
    .loader-animation {
        flex-direction: column;
        gap: 2rem;
    }
    
    .crypto-chart {
        height: 60px;
    }
    
    .chart-line {
        width: 6px;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .progress-percentage {
        font-size: 1.2rem;
    }
    
    .status-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .status-item i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .loader-content {
        max-width: 95%;
        padding: 1rem;
    }
    
    .loader-logo img {
        width: 80px;
        height: 80px;
        border-radius: 0;
    }
    
    .logo-glow {
        width: 100px;
        height: 100px;
    }
    
    .loader-title {
        font-size: 1.6rem;
    }
    
    .loader-subtitle {
        font-size: 0.9rem;
    }
    
    .loader-animation {
        gap: 1.5rem;
    }
    
    .crypto-chart {
        height: 50px;
    }
    
    .chart-line {
        width: 5px;
    }
    
    .chart-line:nth-child(1) { height: 25px; }
    .chart-line:nth-child(2) { height: 45px; }
    .chart-line:nth-child(3) { height: 35px; }
    .chart-line:nth-child(4) { height: 55px; }
    .chart-line:nth-child(5) { height: 40px; }
    
    .progress-ring {
        width: 80px;
        height: 80px;
    }
    
    .progress-percentage {
        font-size: 1rem;
    }
    
    .progress-symbol {
        font-size: 0.7rem;
    }
    
    .status-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .status-item i {
        font-size: 0.8rem;
    }
    
    .status-item span {
        font-size: 0.8rem;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
} 