/* ========================================
ESTILOS DE LOGIN ALPA MODERNO
======================================== */

body.alpa-login {
background: linear-gradient(135deg, #181e27 0%, #0d3d5f 50%, #3385c6 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Raleway', sans-serif;
position: relative;
overflow: hidden;
}

/* Animación de fondo */
body.alpa-login::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 20% 50%, rgba(51, 133, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(24, 30, 39, 0.3) 0%, transparent 50%);
pointer-events: none;
z-index: -1;
}

.login-container {
position: relative;
z-index: 1;
width: 100%;
max-width: 450px;
margin: 0 auto;
padding: 1rem;
}

.login-card {
background: rgba(255, 255, 255, 0.97);
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
from {
    opacity: 0;
    transform: translateY(30px);
}

to {
    opacity: 1;
    transform: translateY(0);
}
}

/* Header del Login */
.login-header {
background: linear-gradient(135deg, #181e27 0%, #3385c6 100%);
padding: 2.5rem 1.5rem 2rem;
text-align: center;
position: relative;
overflow: hidden;
}

.login-header::after {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 300px;
height: 300px;
background: radial-gradient(circle, rgba(129, 218, 255, 0.1) 0%, transparent 70%);
border-radius: 50%;
}

.login-logo {
max-width: 200px;
height: auto;
margin: 0 auto 1.5rem;
display: block;
animation: logoFade 0.8s ease-out 0.2s both;
}

@keyframes logoFade {
from {
    opacity: 0;
    transform: scale(0.9);
}

to {
    opacity: 1;
    transform: scale(1);
}
}

.login-title {
font-family: 'Poppins', sans-serif;
font-size: 1.8rem;
font-weight: 700;
color: #ffffff;
margin: 0 0 0.5rem;
position: relative;
z-index: 1;
}

.login-subtitle {
font-size: 0.9rem;
color: #81daff;
margin: 0;
font-weight: 500;
position: relative;
z-index: 1;
}

/* Body del Login */
.login-body {
padding: 2.5rem 2rem;
}

.login-roles-info {
background: linear-gradient(135deg, rgba(51, 133, 198, 0.08) 0%, rgba(129, 218, 255, 0.08) 100%);
border-left: 4px solid #3385c6;
padding: 1rem;
border-radius: 8px;
margin-bottom: 1.8rem;
animation: slideDown 0.6s ease-out 0.3s both;
}

@keyframes slideDown {
from {
    opacity: 0;
    transform: translateY(-15px);
}

to {
    opacity: 1;
    transform: translateY(0);
}
}

.login-roles-info p {
margin: 0;
color: #1976d2;
font-size: 0.95rem;
font-weight: 500;
}

.login-roles-info i {
margin-right: 0.5rem;
color: #3385c6;
}

/* Formulario */
.form_main {
display: flex;
flex-direction: column;
gap: 1.2rem;
animation: formFade 0.6s ease-out 0.4s both;
}

@keyframes formFade {
from {
    opacity: 0;
}

to {
    opacity: 1;
}
}

.inputContainer {
position: relative;
width: 100%;
display: flex;
align-items: center;
}

.inputIcon {
position: absolute;
left: 12px;
color: #3385c6;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
}

.inputField {
width: 100%;
height: 48px;
background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
border: 2px solid #e0e6ed;
border-radius: 10px;
padding: 0 1rem 0 3rem;
font-family: 'Raleway', sans-serif;
font-size: 1rem;
font-weight: 500;
color: #333333;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inputField:hover {
border-color: #3385c6;
box-shadow: 0 4px 12px rgba(51, 133, 198, 0.15);
}

.inputField:focus {
outline: none;
border-color: #3385c6;
background: #ffffff;
box-shadow: 0 0 0 4px rgba(51, 133, 198, 0.1);
}

.inputField::placeholder {
color: #999999;
font-weight: 400;
}

/* Botón Principal */
#button {
height: 48px;
background: linear-gradient(135deg, #3385c6 0%, #618bc6 100%);
color: #ffffff;
border: none;
border-radius: 10px;
font-family: 'Poppins', sans-serif;
font-size: 1rem;
font-weight: 600;
letter-spacing: 0.5px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
box-shadow: 0 4px 15px rgba(51, 133, 198, 0.3);
margin-top: 0.5rem;
}

#button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
transition: left 0.5s ease;
}

#button:hover::before {
left: 100%;
}

#button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(51, 133, 198, 0.4);
}

#button:active {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(51, 133, 198, 0.3);
}

#button:disabled {
opacity: 0.6;
cursor: not-allowed;
}

/* Footer del Login */
.login-footer {
background: #f8f9fa;
padding: 1.5rem;
text-align: center;
border-top: 1px solid #e0e6ed;
}

.login-footer-text {
font-size: 0.95rem;
color: #666666;
margin: 0 0 1rem;
font-weight: 500;
}

.login-recovery-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(135deg, rgba(51, 133, 198, 0.9) 0%, rgba(97, 139, 198, 0.9) 100%);
color: #ffffff;
text-decoration: none;
padding: 0.6rem 1.2rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
transition: all 0.3s ease;
border: 2px solid transparent;
cursor: pointer;
}

.login-recovery-link:hover {
background: linear-gradient(135deg, #3385c6 0%, #618bc6 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(51, 133, 198, 0.3);
color: #ffffff;
}

.login-recovery-link i {
font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
.login-card {
    margin: 1rem;
    border-radius: 16px;
}

.login-header {
    padding: 2rem 1.5rem 1.5rem;
}

.login-body {
    padding: 1.5rem 1.5rem;
}

.login-title {
    font-size: 1.5rem;
}

.login-logo {
    max-width: 160px;
    margin-bottom: 1rem;
}

.inputField {
    height: 44px;
    font-size: 0.95rem;
}

#button {
    height: 44px;
    font-size: 0.95rem;
}
}

/* Animación del loader spinner */
.spinner {
animation: spin 1s linear infinite;
display: inline-block;
margin-right: 0.5rem;
}

@keyframes spin {
0% {
    transform: rotate(0deg);
}

100% {
    transform: rotate(360deg);
}
}