.auth-page {
    font-family: Arial, sans-serif;
    padding: 50px;
    background: #f4f4f4;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-box {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.login-box input {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px 0;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
}
.login-box button {
    width: 100%;
    padding: 11px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
    position: relative;
    overflow: hidden;
}
.login-box button:hover { background: #0056b3; }
.login-box button:disabled { cursor: not-allowed; opacity: 0.7; }
.login-box .error { color: #dc3545; margin-bottom: 10px; font-size: 0.9em; }
.login-box h2 { margin-top: 0; color: #343a40; }

/* Reutilizamos animación del botón del login */
.button-loading { position: relative; }
.button-loading::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #0056b3, #004494);
    z-index: 1;
}
.button-loading.loading::before {
    animation: loadingLoop 2s ease-in-out infinite;
}
@keyframes loadingLoop {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    51% { width: 100%; left: 100%; }
    100% { width: 0%; left: 100%; }
}
.button-loading span { position: relative; z-index: 2; }
