/* Estilos específicos para páginas de autenticación */
/* NOTA: Los estilos de body y fondo se manejan en el template para consistencia con index.html */

.login-container,
.register-container {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* NOTA: Los estilos de login-card se manejan en el template para consistencia con index.html */

@media (max-width: 768px) {
    .login-container,
    .register-container {
        padding: 1rem 0;
    }
    
    .login-card,
    .register-card {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Configuración para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .login-container,
    .register-container {
        padding: 0.5rem 0;
        min-height: 100vh;
    }
    
    .login-card,
    .register-card {
        padding: 1rem;
        margin: 0.5rem;
        max-width: 400px;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    
    .login-header p,
    .register-header p {
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-login,
    .btn-register {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.75rem;
    }
}

/* Configuración para orientación portrait en móviles */
@media (max-width: 768px) and (orientation: portrait) {
    .login-container,
    .register-container {
        padding: 1.5rem 0;
    }
    
    .login-card,
    .register-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* Estilos para el enlace de registro */
.register-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-link p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.register-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.2rem 0;
}

.register-link a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.register-link a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.register-link a:hover::before {
    width: 100%;
}

.register-link a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.3);
    border-radius: 4px;
}

/* Estilos para el enlace de login (en la página de registro) */
.login-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-link p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.login-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.2rem 0;
}

.login-link a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.login-link a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.login-link a:hover::before {
    width: 100%;
}

.login-link a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.3);
    border-radius: 4px;
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1,
.register-header h1 {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-header p,
.register-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    padding: 1rem 1rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-login,
.btn-register {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
    color: white;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: white;
    text-decoration: underline;
}

.alert {
    border-radius: 15px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-left: 4px solid #ff6b6b;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #51cf66;
    border-left: 4px solid #51cf66;
}

/* Estilos para el checkbox de recordar */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: #4facfe;
    border-color: #4facfe;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Estilos para validación de formularios */
.is-invalid {
    border-color: #ff6b6b !important;
}

.invalid-feedback {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Estilos para el footer en páginas de auth */
footer {
    display: none;
}

/* Estilos para el navbar en páginas de auth - Consistente con index.html */
.navbar {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-brand:hover,
.navbar-nav .nav-link:hover {
    color: white;
}

/* Asegurar que el body no tenga padding-top en páginas de auth */
body {
    padding-top: 0;
}

/* Configuración para pantallas muy pequeñas en landscape */
@media (max-width: 480px) and (orientation: landscape) {
    .login-container,
    .register-container {
        padding: 0.25rem 0;
    }
    
    .login-card,
    .register-card {
        padding: 0.75rem;
        margin: 0.25rem;
        max-width: 350px;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.125rem;
    }
    
    .login-header p,
    .register-header p {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-login,
    .btn-register {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .form-check-label {
        font-size: 0.8rem;
    }
}

/* Configuración para pantallas muy pequeñas en portrait */
@media (max-width: 480px) and (orientation: portrait) {
    .login-container,
    .register-container {
        padding: 1rem 0;
    }
    
    .login-card,
    .register-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.6rem;
    }
    
    .login-header p,
    .register-header p {
        font-size: 0.9rem;
    }
} 