/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #1a252f;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --text-color: #333333;
    --heading-font: 'Helvetica Neue', Arial, sans-serif;
    --body-font: 'Inter', 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 4px;
    --chart-color: rgba(255, 255, 255, 0.05);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Header y navegación */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--light-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Register section styles */
.register-section {
    padding: 120px 0 80px;
    background-color: var(--light-color);
    flex: 1;
    position: relative;
}

.register-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.auth-container {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
    align-self: start;
}

.auth-container h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.auth-intro {
    color: #666;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.auth-form .required {
    color: var(--accent-color);
}

.input-icon-wrapper {
    position: relative;
}

.icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

.form-hint {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

/* Terms checkbox */
.terms {
    margin-top: 5px;
    margin-bottom: 20px;
}

.terms a {
    color: var(--accent-color);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert messages */
.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--error-color);
    color: #a63429;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success-color);
    color: #1d8348;
}

/* Benefits section */
.auth-benefits {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-radius: 8px;
    color: white;
    align-self: start;
    position: relative;
    overflow: hidden;
}

.stock-chart-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.1;
    background-image: 
        linear-gradient(to right, var(--chart-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--chart-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.auth-benefits h2 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    z-index: 2;
}

.auth-benefits h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.benefits-list {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.benefits-list li {
    display: flex;
    margin-bottom: 20px;
}

.benefits-list .icon {
    flex: 0 0 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-list .icon i {
    font-size: 24px;
    color: var(--accent-color);
}

.benefit-text h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.benefit-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Copyright */
.copyright {
    text-align: center;
    padding: 15px 0;
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .register-section .container {
        grid-template-columns: 1fr;
    }
    
    .auth-benefits {
        display: none;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    header .logo {
        margin-bottom: 10px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .register-section {
        padding: 150px 0 60px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 600px) {
    .register-section {
        padding: 130px 20px 60px;
    }
    
    .auth-container {
        padding: 25px;
    }
}