/* login.css ACTUALIZADO CON TUS CLASES */

/* Reset y base para el login */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #006400, #008000);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    box-sizing: border-box;
}

.title-secure-login {
    font-size: 38px;
    font-weight: bold;
}

.secure {
    color: #232323;  /* Verde oscuro */
}

.sab {
    color: #00c60aca;  /* Verde más claro */
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.login-header {
    margin-bottom: 30px;
}

/* ⚠️ CAMBIO IMPORTANTE: ahora usamos la clase que pusiste en HTML */
.title-secure-login {
    font-size: 38px;
    font-weight: bold;
    color: #006400;  /* Verde oscuro */
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: #006400;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.2);
}

/* ⚠️ CAMBIO: ahora usamos btn-login que es tu clase */
.btn-login {
    background-color: #006400;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #004d00;
}

/* ⚠️ Para mensajes de error */
.alert-error {
    color: #e74c3c;
    background-color: #fdeaea;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.register-link {
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #006400;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}


/* Estilo para "¿Olvidaste tu contraseña?" */
.forgot-password {
    margin-top: 15px;
    text-align: center;
}

.forgot-password a {
    color: #006400;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forgot-password a:hover {
    color: #004d00;
    text-decoration: underline;
}

.back-home {
    margin-top: 15px;
    text-align: center;
}

.back-home a {
    color: #006400 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-home a:hover,
.back-home a:visited,
.back-home a:focus {
    color: #004d00 !important;
    text-decoration: underline !important;
    background: transparent;
}

/* ===== Responsive Login ===== */
@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
        margin: 15px;
        border-radius: 12px;
    }

    .title-secure-login {
        font-size: 28px;
    }

    .btn-login {
        padding: 14px 20px;
        font-size: 16px;
    }

    .input-group input[type="text"],
    .input-group input[type="password"] {
        padding: 14px 15px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 20px 15px;
    }

    .title-secure-login {
        font-size: 24px;
    }
}