/* Auth Pages Styling - Arbitra */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --accent-color: #00d4aa;
    --accent-glow: rgba(0, 212, 170, 0.3);
}

/* Auth page container */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 40%);
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Grid pattern overlay */
.auth-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Left side - branding */
.auth-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.auth-brand-content {
    max-width: 500px;
    text-align: center;
    color: white;
}

.auth-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 40px var(--accent-glow);
}

.auth-logo-icon svg {
    width: 48px;
    height: 48px;
    color: #0f0c29;
}

.auth-logo-image {
    width: min(280px, 80%);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.28));
}

.auth-mobile-logo {
    width: 64px;
    height: 64px;
}

.auth-brand h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand .tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

/* Feature list */
.auth-features {
    text-align: left;
    margin-top: 2rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 170, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.auth-feature-icon i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.auth-feature-text h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.auth-feature-text p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Right side - form */
.auth-form-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.auth-card-header p {
    color: #6c757d;
    margin: 0;
}

/* Form styling */
.auth-form .form-label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.875rem;
}

.auth-form .form-control {
    border-radius: 12px;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.auth-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #764ba2;
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 40%;
    animation-delay: 4s;
}

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

/* Chart animation in background */
.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.1;
    overflow: hidden;
}

.chart-line svg {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-brand {
        padding: 2rem;
        min-height: auto;
    }

    .auth-brand-content {
        max-width: 100%;
    }

    .auth-features {
        display: none;
    }

    .auth-form-container {
        max-width: 100%;
    }

    .auth-card {
        border-radius: 24px 24px 0 0;
    }
}

/* Crypto price ticker animation */
.price-ticker {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    white-space: nowrap;
}

.ticker-item .symbol {
    font-weight: 600;
}

.ticker-item .price {
    color: var(--accent-color);
}

.ticker-item .change {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.ticker-item .change.up {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
}

.ticker-item .change.down {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.auth-mobile-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon-circle-lg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.auth-icon-circle-violet {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-icon-circle-green {
    background: linear-gradient(135deg, #00d4aa 0%, #00a085 100%);
}

.auth-icon-circle-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.auth-icon-symbol {
    font-size: 28px;
    color: #fff;
}

.auth-icon-symbol-lg {
    font-size: 40px;
    color: #fff;
}

.auth-card-error {
    max-width: 500px;
}
