* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f7fdf7 0%, #e8f5e8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

.login-logo {
    height: 70px;
    /* Aumentar el tamaño del logo */
    /* Aumentar un poco el tamaño del logo */
    width: auto;
    vertical-align: middle;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    /* Reducir el margen inferior */
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    outline: none;
    border-color: #007A33;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.1);
}

.btn-login {
    width: 100%;
    /* Ocupa todo el ancho disponible */
    background: linear-gradient(45deg, #00662B, #008F3D);
    /* Degradado de color */
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 43, 0.3);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.forgot-password {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.forgot-password a {
    color: #007A33;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn-secondary {
    background: #6c757d;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #007A33;
}

.modal-content .btn-login {
    margin-top: 10px;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 200%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1001;
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    text-align: center;
}

.error-message {
    background: #d9534f;
    /* Un rojo un poco menos estridente */
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #d43f3a;
}

.notification.show {
    transform: translate(-50%, 0);
}

.notification.success {
    background: #007A33;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #007A33;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2a5298;
    border-radius: 50%;
    /* Hace que el spinner sea redondo */
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animación para sacudir el formulario en caso de error */
@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.shake {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}