﻿:root {
    --primary-color: #adf68d;
    --secondary-color: #283739;
    --dark-bg: #0f172a;
    --text-light: #94a3b8;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --green-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

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

/* Background Elements */
.bg-element {
    position: fixed;
    z-index: 0;
}

.bg-element.circle1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(173, 246, 141, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: pulse 4s ease-in-out infinite;
}

.bg-element.circle2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: pulse 5s ease-in-out infinite;
}

.bg-element.bitcoin {
    font-size: 15rem;
    color: rgba(173, 246, 141, 0.03);
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.bg-element.ethereum {
    font-size: 12rem;
    color: rgba(102, 126, 234, 0.03);
    bottom: 10%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: white !important;
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-back {
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-back:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Main Container */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 15px;
    position: relative;
    z-index: 1;
}

.auth-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    animation: slideIn 0.6s ease-out;
    backdrop-filter: blur(10px);
}

/* Side Panel */
.auth-side {
    flex: 1;
    background: var(--purple-gradient);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: pulse 4s ease-in-out infinite;
}

.auth-side-content {
    position: relative;
    z-index: 2;
}

.auth-side h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.auth-side p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.auth-side-features {
    list-style: none;
    padding: 0;
}

.auth-side-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.auth-side-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.auth-side-logo {
    margin-bottom: 30px;
}

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

/* Form Panel */
.auth-form {
    flex: 1;
    padding: 60px 50px;
    background: white;
}

.auth-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
}

.auth-tab {
    padding-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--dark-bg);
    border-bottom-color: var(--primary-color);
}

.auth-tab:hover {
    color: var(--dark-bg);
}

.tab-content-wrapper {
    position: relative;
}

.tab-pane {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(173, 246, 141, 0.1);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.input-group .form-control {
    padding-left: 25px;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--dark-bg);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    cursor: pointer;
}

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

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

.btn-auth {
    width: 100%;
    padding: 16px;
    background: var(--purple-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

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

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

.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-social {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    color: var(--dark-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-social i {
    font-size: 1.2rem;
}

.btn-social.google i {
    color: #DB4437;
}

.btn-social.facebook i {
    color: #4267B2;
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

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

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

.signup-link {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.signup-link a:hover {
    text-decoration: underline;
}

.alert-custom {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.alert-custom.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

    .auth-side {
        padding: 40px 30px;
    }

    .auth-side h2 {
        font-size: 2rem;
    }

    .auth-form {
        padding: 40px 30px;
    }

    .auth-tabs {
        gap: 20px;
    }

    .auth-tab {
        font-size: 1.2rem;
    }

    .social-login {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.btn-auth.loading .spinner {
    display: block;
}

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