/* ==========================================================================
   BotGT · /login/ — overrides específicos del formulario
   ========================================================================== */

body.login {
  background: var(--bg-navy);
  color: var(--text-bone);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decoración de fondo: grid + circuit wings */
.login__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.login__bg-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .12;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 75%);
}
.login__wing {
  position: absolute;
  width: min(480px, 36vw);
  height: auto;
  opacity: .25;
  animation: bgDrift 8s ease-in-out infinite alternate;
}
.login__wing--left  { left: -160px; bottom: -60px;  color: var(--teal); }
.login__wing--right { right: -160px; top: -40px; color: var(--purple); transform: scaleX(-1); animation-duration: 9.5s; }
@media (max-width: 720px) { .login__wing { display: none; } }

/* Header solo con logo + link a home */
.login__header {
  position: relative;
  z-index: 1;
  padding: 26px clamp(20px, 5vw, 64px);
}
.login__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px clamp(20px, 5vw, 64px) 60px;
  min-height: calc(100vh - 100px);
}
.login__card-wrap {
  width: 100%;
  max-width: 420px;
}

/* Card del form */
.login__form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-xl);
  background: rgba(242, 233, 216, .05);
  border: 1px solid rgba(242, 233, 216, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.login__form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.login__form-row .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(242, 233, 216, .65);
  cursor: pointer;
}
.login__form-row .checkbox-label input[type="checkbox"] {
  accent-color: var(--gold);
}
.login__form-row a {
  font-size: 13px;
  color: rgba(242, 233, 216, .65);
}
.login__form-row a:hover { color: var(--gold); }

/* Mensajes de error inline */
.login__error {
  margin: -4px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(192, 57, 43, .12);
  border: 1px solid rgba(192, 57, 43, .35);
  color: #F2C6BD;
  font-size: 13.5px;
  line-height: 1.45;
}
.login__error[hidden] { display: none; }
.login__error--ok {
  background: rgba(0, 122, 140, .18);
  border-color: rgba(0, 122, 140, .5);
  color: #C4E5EA;
}
.login__error--ok a { color: #F4B000; text-decoration: underline; }
.login__link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-on-navy-muted, #B7C2CD);
  cursor: pointer;
  text-decoration: none;
}
.login__link-btn:hover { color: var(--gold, #F4B000); }

/* "Sos cliente y no tenés acceso" */
.login__signup-hint {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(242, 233, 216, .55);
}
.login__signup-hint a { color: var(--gold); }
.login__signup-hint a:hover { color: var(--coral); }

/* "Volver al sitio" */
.login__back {
  display: block;
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, .45);
}
.login__back:hover { color: var(--gold); }

/* ==========================================================================
   Tabs Clientes / Empleados
   ========================================================================== */
.login__tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 0 auto 18px;
  background: rgba(13, 27, 42, .4);
  border: 1px solid rgba(242, 233, 216, .14);
  border-radius: var(--r-pill);
  width: fit-content;
}
.login__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 0;
  background: transparent;
  color: rgba(242, 233, 216, .55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.login__tab:hover { color: var(--text-bone); }
.login__tab.is-active {
  background: var(--gold);
  color: var(--text-ink);
}
.login__tab svg { stroke-width: 2.2; }

/* ==========================================================================
   Quick-access (clientes y empleados)
   ========================================================================== */
.login__quick {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed rgba(242, 233, 216, .18);
}
.login__quick-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, .45);
  margin-bottom: 12px;
  text-align: center;
}
.login__quick-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login__quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: rgba(242, 233, 216, .04);
  border: 1px solid rgba(242, 233, 216, .12);
  border-radius: var(--r-md);
  color: var(--text-bone);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
  font-family: var(--font-body);
}
.login__quick-btn:hover {
  background: rgba(244, 176, 0, .10);
  border-color: rgba(244, 176, 0, .35);
}
.login__quick-btn:active { transform: scale(.99); }
.login__quick-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-bone);
  letter-spacing: -.02em;
}
.login__quick-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.login__quick-text strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-bone);
  letter-spacing: -.01em;
}
.login__quick-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(242, 233, 216, .5);
  letter-spacing: .02em;
}
.login__quick-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(242, 233, 216, .5);
}
.login__quick-note a { color: var(--gold); }
.login__quick-note a:hover { color: var(--coral); }
