/**
 * Neron Signals - Login Page Styles
 * Premium AI-Powered Crypto Trading Platform
 * Version: 2.0
 */

/* ========================================
   CSS Variables - Design Tokens
   ======================================== */
:root {
    /* Primary Colors - Purple & Gold Theme */
    --primary-purple: #6236FF;
    --primary-dark: #151029;
    --gold-primary: #d8af3d;
    --gold-light: #e6c563;
    --gold-dark: #b8932f;
    --gold-glow: rgba(216, 175, 61, 0.4);

    /* Background Colors */
    --bg-primary: #151029;
    --bg-secondary: #1a1433;
    --bg-tertiary: #221a3d;
    --bg-card: rgba(21, 16, 41, 0.85);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-muted: #606070;

    /* Accent Colors */
    --accent-blue: #4F9DFF;
    --accent-green: #00D68F;
    --accent-red: #FF4757;
    --accent-purple: #A855F7;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 40px rgba(216, 175, 61, 0.2);
    --shadow-purple: 0 0 40px rgba(98, 54, 255, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Crypto Background Canvas
   ======================================== */
#cryptoBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gradient Overlay */
.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(244, 180, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(79, 157, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(98, 54, 255, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
    pointer-events: none;
}

/* Animated Light Orbs */
.light-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

.light-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(98, 54, 255, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.light-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.35) 0%, transparent 70%);
    top: 20%;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.light-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(79, 157, 255, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.light-orb-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    bottom: 30%;
    right: 10%;
    animation-delay: -15s;
    animation-duration: 28s;
}

.light-orb-5 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(216, 175, 61, 0.25) 0%, transparent 70%);
    top: 40%;
    left: 5%;
    animation-delay: -8s;
    animation-duration: 30s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.35;
    }

    75% {
        transform: translate(40px, 20px) scale(1.05);
        opacity: 0.45;
    }
}

/* ========================================
   3D Rotating Crypto Logos Background
   ======================================== */
.crypto-3d-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    perspective: 1000px;
}

.crypto-logo-3d {
    position: absolute;
    pointer-events: none;
    transform-style: preserve-3d;
    animation: rotate3D var(--rotate-duration, 20s) linear infinite,
        floatMove var(--float-duration, 30s) ease-in-out infinite;
    animation-delay: var(--animation-delay, 0s);
    opacity: var(--logo-opacity, 0.12);
    filter: drop-shadow(0 0 10px rgba(98, 54, 255, 0.3));
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.crypto-logo-3d img {
    width: var(--logo-size, 60px);
    height: var(--logo-size, 60px);
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1433 0%, #221a3d 100%);
    padding: 4px;
    box-shadow:
        0 0 20px rgba(98, 54, 255, 0.2),
        0 0 40px rgba(216, 175, 61, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* 3D Rotation Keyframes */
@keyframes rotate3D {
    0% {
        transform: rotateY(0deg) rotateX(10deg) rotateZ(0deg);
    }

    25% {
        transform: rotateY(90deg) rotateX(-10deg) rotateZ(5deg);
    }

    50% {
        transform: rotateY(180deg) rotateX(10deg) rotateZ(0deg);
    }

    75% {
        transform: rotateY(270deg) rotateX(-10deg) rotateZ(-5deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(10deg) rotateZ(0deg);
    }
}

/* Float Movement Keyframes */
@keyframes floatMove {

    0%,
    100% {
        translate: 0 0;
    }

    25% {
        translate: 30px -50px;
    }

    50% {
        translate: -20px -80px;
    }

    75% {
        translate: 40px -40px;
    }
}

/* Pulse Glow Animation for variation */
@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(98, 54, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(216, 175, 61, 0.5));
    }
}

/* Different rotation styles for variety */
.crypto-logo-3d.style-orbit {
    animation: orbitRotate var(--rotate-duration, 25s) linear infinite,
        floatMove var(--float-duration, 35s) ease-in-out infinite,
        pulseGlow 4s ease-in-out infinite;
}

@keyframes orbitRotate {
    0% {
        transform: rotateZ(0deg) rotateY(0deg) scale(1);
    }

    50% {
        transform: rotateZ(180deg) rotateY(180deg) scale(1.1);
    }

    100% {
        transform: rotateZ(360deg) rotateY(360deg) scale(1);
    }
}

.crypto-logo-3d.style-flip {
    animation: flipRotate var(--rotate-duration, 15s) linear infinite,
        floatMove var(--float-duration, 28s) ease-in-out infinite;
}

@keyframes flipRotate {
    0% {
        transform: perspective(500px) rotateX(0deg) rotateY(0deg);
    }

    25% {
        transform: perspective(500px) rotateX(90deg) rotateY(90deg);
    }

    50% {
        transform: perspective(500px) rotateX(180deg) rotateY(180deg);
    }

    75% {
        transform: perspective(500px) rotateX(270deg) rotateY(270deg);
    }

    100% {
        transform: perspective(500px) rotateX(360deg) rotateY(360deg);
    }
}

.crypto-logo-3d.style-swing {
    animation: swingRotate var(--rotate-duration, 12s) ease-in-out infinite,
        floatMove var(--float-duration, 25s) ease-in-out infinite;
}

@keyframes swingRotate {

    0%,
    100% {
        transform: rotateY(-30deg) rotateX(10deg);
    }

    50% {
        transform: rotateY(30deg) rotateX(-10deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .crypto-logo-3d img {
        width: calc(var(--logo-size, 60px) * 0.7);
        height: calc(var(--logo-size, 60px) * 0.7);
    }

    .crypto-logo-3d {
        opacity: calc(var(--logo-opacity, 0.12) * 0.8);
    }
}

/* ========================================
   Main Wrapper
   ======================================== */
.login-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    gap: var(--space-lg);
}

/* ========================================
   Brand Section
   ======================================== */
.brand-section {
    text-align: center;
    margin-bottom: var(--space-md);
}

.brand-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 0 20px rgba(244, 180, 0, 0.4));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.brand-tagline .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Logo Stats Container
   ======================================== */
.logo-stats-container {
    width: 100%;
    max-width: 1000px;
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(var(--glass-blur));
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Auth Card - Glassmorphism
   ======================================== */
.auth-card-wrapper {
    width: 100%;
    max-width: 440px;
    perspective: 1000px;
}

.auth-card.glass {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 12px var(--space-xl) var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.auth-card.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(244, 180, 0, 0.5),
            transparent);
}

.auth-card.glass::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(244, 180, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.auth-card.glass:hover::after {
    opacity: 1;
}

/* ========================================
   Form Styles
   ======================================== */
.login-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.form-group:focus-within .form-label {
    color: var(--gold-primary);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color var(--transition-fast);
    z-index: 2;
}

.form-group:focus-within .input-icon {
    color: var(--gold-primary);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    padding-left: calc(var(--space-md) * 2 + 20px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-control:focus {
    border-color: var(--gold-primary);
    background: rgba(244, 180, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.1);
}

/* Validation States */
.form-control.is-valid {
    border-color: var(--accent-green);
}

.form-control.is-invalid {
    border-color: var(--accent-red);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--gold-primary) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(98, 54, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(98, 54, 255, 0.5), 0 0 30px rgba(216, 175, 61, 0.3);
}

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

.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-secondary {
    width: 100%;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-google {
    width: 100%;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background: #f5f5f5;
    box-shadow: var(--shadow-sm);
}

/* Loading State */
.btn .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Checkbox
   ======================================== */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    appearance: none;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

.form-check-input:checked::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ========================================
   Divider
   ======================================== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    padding: 0 var(--space-md);
}

/* ========================================
   Links
   ======================================== */
.auth-links {
    text-align: center;
    margin-top: var(--space-lg);
}

.auth-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.auth-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(0, 214, 143, 0.1);
    border: 1px solid rgba(0, 214, 143, 0.2);
    color: var(--accent-green);
}

.alert-danger {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
}

.alert-warning {
    background: rgba(244, 180, 0, 0.1);
    border: 1px solid rgba(244, 180, 0, 0.2);
    color: var(--gold-primary);
}

.alert-info {
    background: rgba(79, 157, 255, 0.1);
    border: 1px solid rgba(79, 157, 255, 0.2);
    color: var(--accent-blue);
}

/* ========================================
   Trust Section
   ======================================== */
.trust-section {
    margin-top: var(--space-lg);
    text-align: center;
}

.trust-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.crypto-scroll {
    display: flex;
    gap: var(--space-lg);
    animation: scroll 30s linear infinite;
    width: max-content;
}

.crypto-scroll img {
    width: 32px;
    height: 32px;
    opacity: 0.5;
    filter: grayscale(50%);
    transition: all var(--transition-fast);
}

.crypto-scroll img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   Language Dropdown
   ======================================== */
.language-dropdown {
    position: relative;
    z-index: 100;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-toggle:hover {
    background: rgba(244, 180, 0, 0.1);
    border-color: var(--gold-primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
}

.dropdown-item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(244, 180, 0, 0.1);
}

.dropdown-item.active {
    background: rgba(244, 180, 0, 0.2);
    color: var(--gold-primary);
}

/* ========================================
   Floating Crypto Logos (Fallback)
   ======================================== */
.floating-crypto {
    position: fixed;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    animation: floatUp 20s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.08;
    }

    90% {
        opacity: 0.08;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .login-wrapper {
        padding: var(--space-md);
    }

    .brand-title {
        font-size: 2rem;
    }

    .stats-bar {
        gap: var(--space-lg);
        padding: var(--space-sm) var(--space-lg);
    }

    .auth-card.glass {
        padding: var(--space-lg);
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .login-wrapper {
        padding: var(--space-sm);
        justify-content: flex-start;
        padding-top: var(--space-xl);
    }

    .main-content-container {
        flex-direction: column !important;
        align-items: center !important;
    }

    .brand-tagline-container {
        width: 100% !important;
        max-width: 440px !important;
    }

    .logo-stats-container {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .logo-stats-container .stats-bar,
    .logo-stats-container .brand-section,
    .logo-stats-container .brand-tagline {
        order: 0 !important;
    }

    .brand-logo {
        width: 80px !important;
        height: 80px !important;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .stats-bar {
        width: 100%;
        max-width: 440px;
        justify-content: center;
        gap: var(--space-xl);
    }

    .auth-card.glass {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }

    .form-control {
        font-size: 16px;
        /* Prevents iOS zoom */
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .brand-tagline {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .stats-bar {
        gap: var(--space-lg);
    }
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* ========================================
   WebView Optimizations
   ======================================== */
@supports (-webkit-touch-callout: none) {

    .btn,
    .form-control,
    .form-check-input {
        -webkit-tap-highlight-color: transparent;
    }

    .form-control:focus {
        font-size: 16px;
    }
}

/* Disable pull-to-refresh */
body.login-page {
    overscroll-behavior-y: contain;
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .login-wrapper {
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
        padding-right: max(var(--space-lg), env(safe-area-inset-right));
        padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
    }
}

/* ========================================
   Print Styles (Hide on print)
   ======================================== */
@media print {

    #cryptoBackground,
    .bg-gradient-overlay,
    .floating-crypto,
    .stats-bar,
    .trust-section {
        display: none !important;
    }
}