:root {
    --primary-color: #1e7fff;
    --background: #FFFEFC;
    --input-bg: #E5E5E5;
    --text-color: #000000;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.body {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background);
    padding: 20px;
}

/* Contenedor principal */
.login-container {
    width: 100%;
    max-width: 400px; /* Ancho máximo controlado */
}

.heading {
    display: flex;
    justify-content: center;
}

.logo-icon {
    width: 180px;  
    height: 180px;
    object-fit: contain; 
}

/* Tarjeta de login */
.login-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
}

/* Encabezado */
.login-header h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 28px;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-relative {
    align-items: center;
    justify-content: center;
    position: relative; /* Agregado para posicionar el botón */
}

.input-group label {
    font-size: 14px;
    color: var(--text-color);
    padding-left: 10px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: var(--input-bg);
    font-size: 15px;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 127, 255, 0.2);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 50px; /* Espacio para el botón */
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.toggle-password:hover {
    background-color: #f0f0f0;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: color 0.2s;
}

.toggle-password:hover svg {
    color: #333;
}

/* Botón */
.login-button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.login-button:hover {
    background-color: #1663a2;
    transform: translateY(-2px);
}

/* Pie */
.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .input-group input {
        padding: 12px 14px;
    }
}





  

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

button[disabled], 
html input[disabled] {
    cursor: not-allowed !important;
    pointer-events: auto !important;
    box-shadow: none;
    opacity: .65;
}