body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-container:hover {
    transform: translateY(-5px);
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

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

.auth-container {
    animation: fadeIn 0.6s ease-out;
}

.auth-card {
    width: 100%;
    background: transparent;
    box-shadow: none;
}

.card-header {
    padding: var(--spacing-lg);
    text-align: center;
}

.logo {
    display: block;
    margin-bottom: var(--spacing-lg);
}

.logo img {
    height: 40px;
}

.auth-tabs {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tab-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.auth-form {
    padding: var(--spacing-lg);
    visibility: hidden;
    position: absolute;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 1s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.form-group {
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active {
    visibility: visible;
    position: relative;
    opacity: 1;
    max-height: 1000px;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 1s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active .form-group {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    outline: none;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.forgot-password {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    align-self: flex-start;
}

.submit-btn {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-color-dark);
}

.back-to-login {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

#resetForm {
    text-align: center;
}

#resetForm h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

#resetForm p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1rem;
    }
    
    .auth-tabs {
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .submit-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .auth-container {
        padding: 1.5rem;
        margin: 0 10px;
    }
}

@keyframes bubble-up {
    0% {
        transform: translateY(120vh) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) scale(2);
        opacity: 0;
    }
}

.bubble {
    position: fixed;
    bottom: -20px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(0, 159, 252, 0.1));
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.bubble::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(2px);
}

/* Diferentes tamaños y duraciones para las burbujas */
.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation: bubble-up 20s infinite; }
.bubble:nth-child(2) { width: 25px; height: 25px; left: 20%; animation: bubble-up 24s infinite 2s; }
.bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation: bubble-up 28s infinite 1s; }
.bubble:nth-child(4) { width: 35px; height: 35px; left: 50%; animation: bubble-up 30s infinite 3s; }
.bubble:nth-child(5) { width: 45px; height: 45px; left: 65%; animation: bubble-up 26s infinite 2s; }
.bubble:nth-child(6) { width: 30px; height: 30px; left: 80%; animation: bubble-up 22s infinite 1s; }
.bubble:nth-child(7) { width: 38px; height: 38px; left: 90%; animation: bubble-up 25s infinite 3s; }

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(26, 26, 46, 0.8) 0%, 
        rgba(22, 33, 62, 0.2) 100%);
    pointer-events: none;
    z-index: -1;
} 