/* Estilos base del registro */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

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

body {
    background: #000000;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: #E2E8F0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Sports Icons Background */
.sports-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0,0,0,0.9) 0%, #000000 100%);
}

.sports-bg i {
    position: absolute;
    font-size: 2.5rem;
    color: #ffffff;
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.02) 0%, transparent 30%);
}

/* Form Container */
.form-container {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    max-width: 32rem;
    width: 100%;
    margin: 2rem auto;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    opacity: 0;
    animation: slideIn 0.6s ease-out forwards;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #10B981, #F59E0B);
    background-size: 200% 100%;
    animation: gradientBG 3s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Form Elements */
.input-field {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-field:focus {
    background: rgba(45, 45, 45, 0.9);
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.input-field::placeholder {
    color: #94A3B8;
    opacity: 0.7;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-field:focus + .input-icon {
    color: #3B82F6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 0.9375rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px -5px rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -2px rgba(255, 255, 255, 0.2);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sports-icon {
    color: #ffffff;
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #ffffff;
    margin: 0.5rem 0;
    display: block;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #94A3B8;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #94A3B8;
    font-size: 0.9375rem;
}

.form-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    position: relative;
    margin-left: 0.25rem;
}

.form-footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.form-footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.form-footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.checkbox-container input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 30, 0.9);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
    appearance: none;
    position: relative;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #3B82F6;
    border-color: #3B82F6;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.75rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-container label {
    font-size: 0.875rem;
    color: #E2E8F0;
    line-height: 1.4;
}

.checkbox-container a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.checkbox-container a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Error Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    color: #FECACA;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
}

.error-message i {
    margin-right: 0.5rem;
    margin-top: 0.125rem;
}

.error-text {
    color: #FECACA;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.error-text i {
    margin-right: 0.25rem;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    z-index: 2;
}

.password-toggle:hover {
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.1);
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .form-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .sports-icon {
        font-size: 3.5rem;
    }
}
