/* Estilos de la Página de Login */
.login-body {
    background: linear-gradient(135deg, #f6811a 0%, #f44a17 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 200px; /* Espacio para el pie de página fijo */
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    /* El padding se encoge en pantallas angostas en vez de robarle ancho útil
       al formulario. */
    padding: clamp(24px, 5vw, 40px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Variante ancha para los formularios con más campos —cambiar contraseña lleva
   tres campos y el checklist—, que en 400px quedaban apretados. */
.login-card--ancha {
    max-width: 640px;
}

/* Para páginas cuyo contenido puede superar el alto de la ventana: el footer
   deja de ser fijo y va en el flujo, así no tapa el final del formulario. */
.login-body--flujo {
    display: block;
    min-height: 0;
    padding-bottom: 0;
}

.login-body--flujo .login-footer {
    position: static !important;
    margin-top: 0;
}

.login-header {
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #f6811a;
    background: linear-gradient(45deg, #f6811a, #f44a17);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #f6811a, #f44a17);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group-text {
    background: linear-gradient(45deg, #f6811a, #f44a17);
    color: white;
    border: none;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    border: none;
    padding: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(246, 129, 26, 0.25);
    border: none;
}

/* Edge dibuja su propio ojo al mostrar la contraseña: se oculta para no duplicarlo */
.form-control::-ms-reveal,
.form-control::-ms-clear {
    display: none;
}

.btn-toggle-password {
    border: none;
    border-radius: 0;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #888;
    transition: all 0.3s ease;
}

.btn-toggle-password:hover,
.btn-toggle-password:focus {
    background: white;
    color: #f6811a;
    box-shadow: none;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    margin: 0;
}

.form-check-label {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #f6811a, #f44a17);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(246, 129, 26, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 129, 26, 0.4);
    background: linear-gradient(45deg, #e67410, #d94315);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-home {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #dc3545;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: #c82333;
    color: white;
}

.btn-home:active {
    transform: translateY(0);
}

.text-danger {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Ajustes responsivos */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
}