* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: relative;
}



.compass {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #2a5298;
}

.compass-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
}

.compass-n,
.compass-e,
.compass-s,
.compass-w {
    position: absolute;
    font-weight: bold;
    font-size: 18px;
    color: #2a5298;
}

.compass-n {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-e {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-s {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-w {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, #ff6b35 0%, #ff6b35 45%, #333 55%, #333 100%);
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 2px;
    z-index: 2;
}



.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 400px;
    z-index: 10;
    position: relative;
}

.login-form .login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-form .login-logo img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.login-form h1 {
    display: none;
    /* Ocultar el texto antiguo */
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2a5298;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #2a5298;
    background: white;
    box-shadow: 0 0 10px rgba(42, 82, 152, 0.2);
}

.input-group input::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    color: #666;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #2a5298;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #ff6b35;
}

.message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: none;
    line-height: 1.4;
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 10px rgba(21, 87, 36, 0.1);
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 10px rgba(114, 28, 36, 0.1);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeIn 0.6s ease-out;
}

.compass {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }

  

    .login-form-container {
        width: 100%;
        max-width: 400px;
        margin: 0 20px;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para formulario de recuperación */
#forgotForm h2 {
    color: #2a5298;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

#forgotForm p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* Estilos para enlace de recuperación */
.reset-link {
    margin-top: 15px;
    padding: 15px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    text-align: center;
}

.reset-link-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reset-link-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.reset-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.reset-note {
    color: #6c757d;
    font-style: italic;
}

/* Efecto shake para errores */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* Efectos de focus mejorados */
.input-group.focused {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.input-group.focused input {
    border-color: #2a5298;
    box-shadow: 0 0 15px rgba(42, 82, 152, 0.3);
}

/* Estilos para botones deshabilitados */
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.login-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Mejoras responsive adicionales */
@media (max-width: 480px) {
    .login-form-container {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .login-form h1 {
        font-size: 28px;
    }

    .input-group input {
        padding: 12px 12px 12px 45px;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }

    .reset-link-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}