/* ============================================
   CSS - Módulo de Autenticación (Login)
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #1f370f 0%, #4a7c2a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 2rem;
    width: 100%;
    position: relative;
}

#alertContainer {
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
    min-height: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    /* max-width: 3rem; */
    max-height: 5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.login-header h1 {
    color: #667eea;
    font-weight: 600;
}

.btn-login {
    background: linear-gradient(135deg, #1f370f 0%, #4a7c2a 100%);
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 42, 0.4);
    background: linear-gradient(135deg, #2d5016 0%, #3d6523 100%);
}

.password-toggle {
    cursor: pointer;
    user-select: none;
}

.password-toggle:hover {
    color: #4a7c2a !important;
}

#alertContainer .alert {
    margin: 0;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem;
        border-radius: 10px;
    }
    .login-header h1 {
        font-size: 1.5rem;
    }
}
