:root {
    --primary-purple: #6a11cb;
    --secondary-purple: #8a2be2;
    --light-purple: #b19cd9;
    --dark-purple: #4b0082;
    --gold: #ffd700;
    --light-gold: #ffec8b;
    --dark-gold: #daa520;
    --bg-light: #f9f7ff;
    --bg-dark: #1a0b2e;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --success: #00c853;
    --warning: #ff9800;
    --danger: #f44336;
    --input-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--dark-purple) 100%);
    color: var(--text-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(to right, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 14px;
    color: var(--light-purple);
    font-weight: 300;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--gold);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.wallet-btn {
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    color: var(--bg-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.wallet-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 11, 46, 0.9), rgba(74, 0, 130, 0.8)), url('https://images.unsplash.com/photo-1511895426328-dc8714191300?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(106, 17, 203, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(to right, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-purple);
}

/* Sección de Autenticación */
.auth-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    min-height: 70vh;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.auth-tab {
    padding: 15px 30px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-purple);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-purple);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-purple), var(--gold));
    border-radius: 3px 3px 0 0;
}

.auth-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    border-top: 5px solid var(--primary-purple);
}

.auth-form {
    padding: 40px;
}

.form-title {
    font-size: 28px;
    color: var(--dark-purple);
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 15px;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-purple);
}

.input-with-icon {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-purple);
    font-size: 18px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--light-purple);
    cursor: pointer;
    font-size: 18px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox-label a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-dark);
    font-size: 14px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.form-divider span {
    padding: 0 15px;
}

.wallet-connect-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.wallet-connect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-dark);
    font-size: 15px;
}

.auth-footer a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.benefits-sidebar {
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    border-radius: 20px;
    padding: 40px;
    color: white;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefits-title {
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--gold);
    text-align: center;
}

.benefits-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--light-gold);
}

.benefit-content p {
    font-size: 14px;
    color: var(--light-purple);
    line-height: 1.5;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--dark-purple) 100%);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.footer-logo h3 {
    font-size: 24px;
    background: linear-gradient(to right, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-purple);
    font-size: 14px;
}

/* Animaciones */
@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-sidebar {
        max-width: 500px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 30px;
    }
    
    .auth-form {
        padding: 30px;
    }
    
    .benefits-sidebar {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 26px;
    }
    
    .auth-tab {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .benefits-title {
        font-size: 22px;
    }
}

/* Estados de validación */
.form-input.error {
    border-color: var(--danger);
}

.form-input.success {
    border-color: var(--success);
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}