@charset "utf-8";

body {
    background: url('../imagenes/fondo-login.png') center center fixed no-repeat;
    background-color: #1C1C1E;
    background-size: cover;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* El form ocupa todo el ancho para que el flex del body funcione */
body > form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    filter: blur(10px) brightness(0.6);
    animation: fadeIn 0.8s ease-out;
}

#divEspera {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 12px;
}

.cnf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 188, 0, 0.2);
    border-top-color: #FFBC00;
    border-radius: 50%;
    animation: cnf-spin 0.75s linear infinite;
}
@keyframes cnf-spin {
    to { transform: rotate(360deg); }
}

/* ── Tarjeta de login ── */
.datos {
    background-color: rgba(255,255,255,0.97);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    border-radius: 16px;
    padding: 2.5rem !important;
    animation: fadeInUp 0.45s ease-out;
    text-align: center;
    /* Pisamos las clases col-* de Bootstrap que achicarían el card */
    width: min(480px, 92vw) !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 auto;
}

.autogestion {
    background-color: transparent;
    border-radius: 10px;
    text-align: center;
}

.titulo-autogestion {
    background-color: #FFBC00;
    color: #1C1C1E;
    padding: 10px 16px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.formulario-login {
    text-align: left;
}

label {
    font-size: 0.875rem;
    color: #1C1C1E;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    text-align: left;
}

.legajo {
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    color: #1C1C1E;
    font-family: inherit;
    font-size: 1rem;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    margin-bottom: 12px;
}
.legajo:focus {
    border-color: #FFBC00;
    box-shadow: 0 0 0 3px rgba(255,188,0,0.2);
}

.boton {
    width: 100%;
    background-color: #FFBC00;
    border: none;
    border-radius: 8px;
    color: #1C1C1E;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 11px 16px;
    transition: background-color 0.18s, transform 0.1s;
    margin-top: 8px;
}
.boton:hover { background-color: #E6A800; }
.boton:active { transform: scale(0.98); }

@media (max-width: 480px) {
    .datos { padding: 1.5rem !important; }
    body { padding: 0.75rem; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
