/* =========================================================
   APSIS MDM · Login / recuperación de contraseña
   ========================================================= */
:root { --accent: #6d5dfc; --accent-2: #22d3ee; --ink: #0a0d1f; }

body.auth { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: #f6f6fb; color: #1c2040; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

.auth-art { position: relative; overflow: hidden; background: var(--ink); color: #fff;
            padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-mesh { position: absolute; inset: -30%;
    background: radial-gradient(35% 35% at 25% 35%, rgba(124,108,255,.55), transparent 70%),
                radial-gradient(30% 30% at 75% 70%, rgba(34,211,238,.35), transparent 70%);
    animation: float 16s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate(4%, -3%) rotate(6deg); } }
.auth-art > * { position: relative; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.02em;
         color: #fff; text-decoration: none; font-size: 1.2rem; }
.brand span { color: #a99dff; }
.auth-quote h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.auth-quote h2 em { font-style: normal; background: linear-gradient(90deg, #a99dff, #22d3ee);
                    -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-quote p { color: rgba(255,255,255,.7); max-width: 28rem; margin-top: 1rem; }
.auth-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.auth-chips span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
                   border-radius: 99px; padding: .4rem .9rem; font-size: .82rem; }
.auth-art small { color: rgba(255,255,255,.4); }

.auth-main { display: flex; flex-direction: column; padding: 2rem; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.back { color: #6b7091; text-decoration: none; font-size: .9rem; font-weight: 500; }
.back:hover { color: var(--accent); }
.lang-switch { display: flex; background: #ebebf5; border-radius: 99px; padding: 3px; }
.lang-switch a { text-decoration: none; color: #6b7091; font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 99px; }
.lang-switch a.active { background: #fff; color: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

.auth-card { width: 100%; max-width: 410px; margin: auto; padding: 2rem 0; }
.auth-h { font-weight: 800; letter-spacing: -.03em; font-size: 1.9rem; }
.auth-sub { color: #6b7091; margin-bottom: 1.8rem; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
             color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 1.2rem;
             box-shadow: 0 14px 28px -12px rgba(109,93,252,.8); }

.form-label { font-weight: 600; font-size: .85rem; color: #374151; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.input-icon .form-control { padding: .75rem 2.8rem .75rem 2.6rem; border-radius: 12px; border: 1.5px solid #e3e3ef; background: #fff; }
.input-icon .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109,93,252,.14); }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #9ca3af; padding: .3rem .5rem; }
.pw-toggle:hover { color: var(--accent); }

.btn-accent { background: linear-gradient(135deg, var(--accent), #5140ff); color: #fff; border: 0; border-radius: 12px;
              font-weight: 600; box-shadow: 0 12px 26px -12px rgba(109,93,252,.85); }
.btn-accent:hover { color: #fff; filter: brightness(1.07); }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

.pw-meter { height: 5px; background: #ebebf5; border-radius: 99px; margin-top: .5rem; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 99px; transition: all .3s; }

@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}
.brand-logo { height: 84px; width: auto; display: block; }
.brand-logo-sm { height: 30px; width: auto; display: block; }
