/* ==========================================================================
   SistemGym - Modern Clean Pro Login Theme
   ========================================================================== */

* {
    box-sizing: border-box;
}

body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    font-family: Inter, Segoe UI, -apple-system, system-ui, sans-serif;
    background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(56, 180, 90, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 60%, #020617 100%);
    color: #1e293b;
    position: relative;
    overflow-x: hidden;
}

/* Patrón de cuadrícula de fondo sutil */
body.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Tarjeta de Autenticación */
.auth-card {
    width: min(440px, 100%);
    background: #ffffff;
    border-radius: 20px;
    padding: 38px 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    animation: authCardFade 0.35s ease-out;
}

@keyframes authCardFade {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logotipo */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-wrapper {
    display: inline-flex;
    padding: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(245, 158, 11, 0.35);
    margin-bottom: 14px;
}

.auth-logo {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}

/* Píldora del Nombre del Gimnasio */
.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-brand-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}

.auth-card h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin: 0 0 6px 0;
}

.auth-sub {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

/* Alertas de Error */
.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.input-icon-wrapper .form-control {
    padding-left: 42px;
}

.input-icon-wrapper:focus-within .input-icon {
    color: #d97706;
}

/* Botón ver/ocultar contraseña */
.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    padding: 4px 6px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.btn-toggle-password:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.form-control {
    width: 100%;
    height: 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.18s ease;
}

.form-control:hover {
    border-color: #94a3b8;
}

.form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.2);
    outline: none;
}

/* Botón de Ingreso */
.btn-auth-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    border: 1px solid #d97706;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-auth-submit:hover {
    background: #f59e0b;
    color: #000000;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.42);
    transform: translateY(-1.5px);
}

.btn-auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

/* Separador y enlace al Kiosco */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #e2e8f0;
    flex: 1;
}

.auth-kiosk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.auth-kiosk-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
