/**
 * ============================================================================
 * ESTILOS DEL LOGIN
 * ============================================================================
 */

/* Variables */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --primary: #00d9ff;
    --accent: #ff00ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 217, 255, 0.3);
    --error: #ff0066;
    --success: #00ff88;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #151932 50%, #1a1147 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 0;
}

/* Contenedor Principal */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    margin: auto;
    position: relative;
    z-index: 10;
}

/* Caja de Login */
.login-box {
    background: rgba(21, 25, 50, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.15),
        0 0 100px rgba(255, 0, 255, 0.1),
        inset 0 0 40px rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

.logo-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

.logo-circle i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--primary), #00a8cc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.2),
        inset 0 0 10px rgba(0, 217, 255, 0.05);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Password Input con Toggle */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Remember Me */
.remember-me {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Botón de Login */
.btn-login {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary), #00a8cc);
    border: none;
    border-radius: 10px;
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

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

/* Mensaje de Error */
.error-message {
    padding: 0.8rem 1rem;
    background: rgba(255, 0, 102, 0.15);
    border: 1px solid var(--error);
    border-radius: 8px;
    color: var(--error);
    font-size: 0.85rem;
    text-align: center;
    display: none;
    animation: shake 0.5s ease;
}

.error-message.show {
    display: block;
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary);
}

.forgot-password i {
    font-size: 1rem;
}

/* Footer */
.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    text-align: center;
}

.login-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.login-footer p:last-child {
    margin-bottom: 0;
}

.login-footer .copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.login-footer i {
    color: var(--primary);
}

.login-footer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Decoración de Fondo */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    right: -10%;
    animation-delay: 2s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.3),
            inset 0 0 20px rgba(0, 217, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 40px rgba(0, 217, 255, 0.5),
            inset 0 0 30px rgba(0, 217, 255, 0.2);
    }
}

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle i {
        font-size: 2rem;
    }
}
