/* =========================================================
   DRIVE DEVBLK · LOGIN
   Dark · Cyberpunk · Futurista · Responsive
   ========================================================= */

.login-page {
  --login-bg: #050608;
  --login-surface: #090b0f;
  --login-surface-soft: #0d1015;
  --login-surface-strong: #11151b;

  --login-line: #242a33;
  --login-line-soft: #181d24;
  --login-line-strong: #343c48;

  --login-text: #f4f7fa;
  --login-text-soft: #a7b0bc;
  --login-text-muted: #687280;

  --login-accent: #00e5ff;
  --login-accent-soft: rgba(0, 229, 255, 0.1);
  --login-accent-line: rgba(0, 229, 255, 0.42);

  --login-green: #45f5a7;
  --login-red: #ff5263;

  position: relative;
  isolation: isolate;

  display: grid;
  place-items: center;

  width: 100%;
  min-height: 100vh;
  padding: 28px;

  overflow: hidden;

  color: var(--login-text);

  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(0, 229, 255, 0.065),
      transparent 27%
    ),
    radial-gradient(
      circle at 88% 88%,
      rgba(86, 111, 255, 0.055),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #050608 0%,
      #080a0e 50%,
      #040507 100%
    );
}

/* =========================================================
   FONDO
   ========================================================= */

.login-grid {
  position: absolute;
  inset: 0;
  z-index: -3;

  pointer-events: none;

  opacity: 0.42;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );

  background-size: 42px 42px;

  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      #000 16%,
      #000 84%,
      transparent
    );
}

.login-scanline {
  position: absolute;
  inset: 0;
  z-index: -2;

  pointer-events: none;

  opacity: 0.18;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.014) 4px
    );
}

.login-page::before {
  position: absolute;
  top: 0;
  left: 12%;
  z-index: -1;

  width: 220px;
  height: 1px;

  content: "";

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--login-accent),
      transparent
    );
}

.login-page::after {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: -1;

  width: 300px;
  height: 1px;

  content: "";

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(86, 111, 255, 0.8),
      transparent
    );
}

/* =========================================================
   CONTENEDOR
   ========================================================= */

.login-shell {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(390px, 0.92fr);

  width: min(1180px, 100%);
  min-height: min(740px, calc(100vh - 56px));

  overflow: hidden;

  border: 1px solid var(--login-line-strong);
  border-radius: 22px;

  background: var(--login-surface);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42);
}

.login-shell::before,
.login-shell::after {
  position: absolute;
  z-index: 5;

  width: 72px;
  height: 1px;

  content: "";

  background: var(--login-accent);
}

.login-shell::before {
  top: -1px;
  left: 42px;
}

.login-shell::after {
  right: 42px;
  bottom: -1px;
}

/* =========================================================
   PANEL DE MARCA
   ========================================================= */

.login-brand-panel {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;

  min-width: 0;
  padding: 38px;

  overflow: hidden;

  border-right: 1px solid var(--login-line);

  background:
    linear-gradient(
      150deg,
      rgba(15, 19, 25, 0.96),
      rgba(7, 9, 13, 0.98)
    );
}

.login-brand-panel::before {
  position: absolute;
  top: 90px;
  right: -190px;
  z-index: -1;

  width: 430px;
  height: 430px;

  border: 1px solid rgba(0, 229, 255, 0.09);
  border-radius: 50%;

  content: "";
}

.login-brand-panel::after {
  position: absolute;
  right: 58px;
  bottom: 90px;
  z-index: -1;

  width: 180px;
  height: 180px;

  border:
    1px dashed
    rgba(255, 255, 255, 0.055);
  border-radius: 50%;

  content: "";

  animation:
    login-orbit 24s linear infinite;
}

.login-brand-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  min-width: 0;
  padding-bottom: 22px;

  border-bottom: 1px solid var(--login-line);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
}

.login-brand__icon {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  min-width: 48px;
  height: 48px;

  border: 1px solid var(--login-line-strong);
  border-radius: 13px;

  color: var(--login-accent);

  background:
    linear-gradient(
      145deg,
      #10151b,
      #090c11
    );
}

.login-brand__icon::after {
  position: absolute;
  right: -2px;
  bottom: -2px;

  width: 8px;
  height: 8px;

  border: 2px solid var(--login-surface);
  border-radius: 50%;

  content: "";

  background: var(--login-green);
}

.login-brand__icon svg {
  width: 21px;
  height: 21px;

  stroke-width: 1.8;
}

.login-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.login-brand__copy strong {
  color: var(--login-text);

  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-brand__copy span {
  color: var(--login-text-muted);

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 34px;
  padding: 0 11px;

  border: 1px solid var(--login-line);
  border-radius: 8px;

  color: var(--login-text-soft);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.02);
}

.login-brand-panel__status {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--login-green);

  animation:
    login-pulse 2s ease-in-out infinite;
}

.login-brand-panel__content {
  position: relative;

  max-width: 610px;
}

.login-brand-panel__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 24px;

  color: var(--login-text-muted);

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.login-brand-panel__code span:last-child {
  color: var(--login-accent);
}

.login-brand-panel__eyebrow {
  display: inline-flex;
  align-items: center;

  margin-bottom: 20px;
  padding: 7px 10px;

  border: 1px solid var(--login-accent-line);
  border-radius: 6px;

  color: var(--login-accent);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  background: var(--login-accent-soft);
}

.login-brand-panel__content h1 {
  max-width: 620px;
  margin: 0;

  color: var(--login-text);

  font-size: clamp(44px, 4.2vw, 66px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.login-brand-panel__content h1 span {
  display: block;

  color: var(--login-accent);
}

.login-brand-panel__content > p {
  max-width: 540px;
  margin: 24px 0 0;

  color: var(--login-text-soft);

  font-size: 15px;
  line-height: 1.7;
}

.login-feature-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;

  margin-top: 34px;
}

.login-feature {
  position: relative;

  display: grid;
  grid-template-columns:
    auto
    auto
    minmax(0, 1fr);
  align-items: center;
  gap: 11px;

  min-width: 0;
  padding: 14px;

  overflow: hidden;

  border: 1px solid var(--login-line);
  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.008)
    );

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.login-feature::after {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 0;
  height: 1px;

  content: "";

  background: var(--login-accent);

  transition:
    width 220ms ease;
}

.login-feature:hover {
  border-color: var(--login-accent-line);

  background: var(--login-accent-soft);

  transform: translateY(-2px);
}

.login-feature:hover::after {
  width: 100%;
}

.login-feature__index {
  color: #46515e;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 9px;
}

.login-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  min-width: 34px;
  height: 34px;

  border: 1px solid var(--login-line);
  border-radius: 8px;

  color: var(--login-accent);

  background: #0a0d12;
}

.login-feature__icon svg {
  width: 16px;
  height: 16px;

  stroke-width: 1.8;
}

.login-feature__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 0;
}

.login-feature strong {
  color: var(--login-text);

  font-size: 11px;
  font-weight: 700;
}

.login-feature span {
  color: var(--login-text-muted);

  font-size: 10px;
  line-height: 1.4;
}

.login-brand-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding-top: 20px;

  border-top: 1px solid var(--login-line);
}

.login-brand-panel__footer > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-brand-panel__footer > div:last-child {
  align-items: flex-end;
}

.login-brand-panel__footer-label {
  color: var(--login-text-muted);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand-panel__footer strong {
  color: var(--login-text-soft);

  font-size: 10px;
  font-weight: 600;
}

.login-brand-panel__footer-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--login-green) !important;
}

.login-brand-panel__footer-online span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: currentColor;
}

/* =========================================================
   PANEL DE FORMULARIO
   ========================================================= */

.login-form-panel {
  position: relative;

  display: grid;
  place-items: center;

  min-width: 0;
  padding: 46px;

  overflow: hidden;

  background:
    linear-gradient(
      160deg,
      #090b0f,
      #06080b
    );
}

.login-form-panel::before {
  position: absolute;
  top: -140px;
  right: -140px;

  width: 300px;
  height: 300px;

  border: 1px solid rgba(0, 229, 255, 0.07);
  border-radius: 50%;

  content: "";
}

.login-form-panel__corner {
  position: absolute;

  width: 28px;
  height: 28px;

  pointer-events: none;
}

.login-form-panel__corner--top {
  top: 22px;
  right: 22px;

  border-top: 1px solid var(--login-accent);
  border-right: 1px solid var(--login-accent);
}

.login-form-panel__corner--bottom {
  bottom: 22px;
  left: 22px;

  border-bottom: 1px solid var(--login-accent);
  border-left: 1px solid var(--login-accent);
}

.login-form-panel__inner {
  position: relative;

  width: min(430px, 100%);
}

.login-form-header {
  margin-bottom: 28px;
  padding-bottom: 26px;

  border-bottom: 1px solid var(--login-line);
}

.login-form-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 26px;
}

.login-form-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border: 1px solid var(--login-line-strong);
  border-radius: 12px;

  color: var(--login-accent);

  background:
    linear-gradient(
      145deg,
      #11161d,
      #090c11
    );
}

.login-form-header__icon svg {
  width: 21px;
  height: 21px;

  stroke-width: 1.8;
}

.login-form-header__terminal {
  color: var(--login-text-muted);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.login-form-header__eyebrow {
  display: block;

  margin-bottom: 8px;

  color: var(--login-accent);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-form-header h2 {
  margin: 0;

  color: var(--login-text);

  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.login-form-header p {
  margin: 11px 0 0;

  color: var(--login-text-soft);

  font-size: 13px;
  line-height: 1.55;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.login-field__header label {
  color: #d8dee6;

  font-size: 11px;
  font-weight: 700;
}

.login-field__header span {
  color: var(--login-text-muted);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.login-control {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 54px;

  overflow: hidden;

  border: 1px solid var(--login-line-strong);
  border-radius: 10px;

  background: #080a0e;

  transition:
    border-color 170ms ease,
    background-color 170ms ease;
}

.login-control::after {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 0;
  height: 1px;

  content: "";

  background: var(--login-accent);

  transition:
    width 220ms ease;
}

.login-control:hover {
  border-color: #46505d;
}

.login-control:focus-within {
  border-color: var(--login-accent-line);

  background: #090d12;
}

.login-control:focus-within::after {
  width: 100%;
}

.login-control__prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  min-width: 50px;
  height: 52px;

  border-right: 1px solid var(--login-line);

  color: var(--login-text-muted);

  background: rgba(255, 255, 255, 0.018);
}

.login-control:focus-within .login-control__prefix {
  color: var(--login-accent);
}

.login-control__prefix svg {
  width: 17px;
  height: 17px;

  stroke-width: 1.8;
}

.login-control input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;

  border: 0;
  outline: 0;

  color: var(--login-text);

  font-family: inherit;
  font-size: 13px;

  background: transparent;
}

.login-control input::placeholder {
  color: #4d5662;
}

.login-control__status {
  margin-right: 13px;

  color: #4c5663;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.login-control__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  min-width: 40px;
  height: 40px;
  margin-right: 6px;
  padding: 0;

  border: 1px solid transparent;
  border-radius: 8px;

  color: var(--login-text-muted);

  background: transparent;

  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.login-control__toggle:hover {
  border-color: var(--login-line);

  color: var(--login-accent);

  background: var(--login-accent-soft);
}

.login-control__toggle svg {
  width: 17px;
  height: 17px;

  stroke-width: 1.8;
}

.login-field__error {
  min-height: 14px;

  color: var(--login-red);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 9px;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  padding: 12px;

  border: 1px solid rgba(255, 82, 99, 0.42);
  border-radius: 10px;

  color: #ff8591;

  font-size: 11px;
  line-height: 1.5;

  background: rgba(255, 82, 99, 0.07);
}

.login-alert[hidden] {
  display: none;
}

.login-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  min-width: 26px;
  height: 26px;

  color: var(--login-red);
}

.login-alert__icon svg {
  width: 16px;
  height: 16px;
}

.login-submit {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  min-height: 54px;
  padding: 0 18px;

  overflow: hidden;

  border: 1px solid var(--login-accent);
  border-radius: 10px;

  color: #001014;

  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;

  background: var(--login-accent);

  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.login-submit::before {
  position: absolute;
  top: 0;
  left: -130%;

  width: 90%;
  height: 100%;

  content: "";

  transform: skewX(-25deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.32),
      transparent
    );

  transition:
    left 500ms ease;
}

.login-submit:hover:not(:disabled)::before {
  left: 140%;
}

.login-submit:hover:not(:disabled) {
  color: var(--login-accent);

  background: #071116;

  transform: translateY(-2px);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.login-submit > svg {
  width: 18px;
  height: 18px;

  stroke-width: 2;
}

.login-submit__line {
  position: absolute;
  top: 0;
  left: 16px;

  width: 42px;
  height: 1px;

  background: #ffffff;
}

.login-submit__loader {
  display: none;
  align-items: center;
  justify-content: center;
}

.login-submit__loader span {
  width: 18px;
  height: 18px;

  border: 2px solid rgba(0, 16, 20, 0.25);
  border-top-color: #001014;
  border-radius: 50%;

  animation:
    login-spin 0.7s linear infinite;
}

.login-submit.is-loading .login-submit__loader {
  display: inline-flex;
}

.login-submit.is-loading .login-submit__text,
.login-submit.is-loading > svg {
  display: none;
}

.login-divider {
  display: grid;
  grid-template-columns:
    minmax(20px, 1fr)
    auto
    minmax(20px, 1fr);
  align-items: center;
  gap: 12px;

  margin: 26px 0 19px;
}

.login-divider span {
  height: 1px;

  background: var(--login-line);
}

.login-divider small {
  color: #505a67;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.login-security {
  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 11px;

  padding: 13px;

  border: 1px solid var(--login-line);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.018);
}

.login-security__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  min-width: 34px;
  height: 34px;

  border: 1px solid rgba(69, 245, 167, 0.28);
  border-radius: 8px;

  color: var(--login-green);

  background: rgba(69, 245, 167, 0.06);
}

.login-security__icon svg {
  width: 16px;
  height: 16px;

  stroke-width: 1.8;
}

.login-security__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.login-security strong {
  color: #dce3ea;

  font-size: 10px;
}

.login-security span {
  color: var(--login-text-muted);

  font-size: 9px;
  line-height: 1.45;
}

.login-security__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: var(--login-green);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.login-security__status span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: currentColor;
}

.login-mobile-footer {
  display: none;
}

/* =========================================================
   ESTADOS
   ========================================================= */

.login-field.has-error .login-control {
  border-color: rgba(255, 82, 99, 0.75);

  background: rgba(255, 82, 99, 0.035);
}

.login-field.has-error .login-control__prefix {
  color: var(--login-red);
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes login-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.42;
    transform: scale(0.72);
  }
}

@keyframes login-orbit {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 821px) {
  html,
  body {
    width: 100%;
    height: 100%;

    overflow: hidden;
  }

  .login-page {
    height: 100vh;
    min-height: 0;
  }

  .login-shell {
    height: min(760px, calc(100vh - 56px));
    min-height: 0;
    max-height: calc(100vh - 56px);
  }

  .login-brand-panel,
  .login-form-panel {
    min-height: 0;
    height: 100%;
  }
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(370px, 0.9fr);
  }

  .login-brand-panel {
    padding: 32px;
  }

  .login-form-panel {
    padding: 38px;
  }

  .login-brand-panel__content h1 {
    font-size: clamp(40px, 5vw, 56px);
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .login-feature:nth-child(4) {
    display: none;
  }
}

@media (max-width: 820px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-page {
    display: block;

    min-height: 100dvh;
    padding: 0;

    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-shell {
    display: block;

    width: 100%;
    min-height: 100dvh;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .login-shell::before,
  .login-shell::after {
    display: none;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    min-height: 100dvh;
    padding: 44px 24px;
  }

  .login-form-panel__inner {
    width: min(470px, 100%);
    padding: 28px;

    border: 1px solid var(--login-line-strong);
    border-radius: 18px;

    background:
      linear-gradient(
        150deg,
        rgba(15, 19, 25, 0.98),
        rgba(7, 9, 13, 0.98)
      );
  }

  .login-form-header__top {
    margin-bottom: 22px;
  }

  .login-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 28px;
    padding-top: 18px;

    border-top: 1px solid var(--login-line);
  }

  .login-mobile-footer > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .login-mobile-footer strong {
    color: var(--login-text);

    font-size: 11px;
  }

  .login-mobile-footer > div > span {
    color: var(--login-text-muted);

    font-size: 9px;
  }

  .login-mobile-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--login-green);

    font-family:
      "SFMono-Regular",
      Consolas,
      monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .login-mobile-footer__status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
  }
}

@media (max-width: 520px) {
  .login-form-panel {
    display: block;

    padding: 18px;
  }

  .login-form-panel__inner {
    min-height: calc(100dvh - 36px);
    padding: 22px;

    border-radius: 15px;
  }

  .login-form-panel__corner {
    display: none;
  }

  .login-form-header {
    margin-bottom: 24px;
    padding-bottom: 22px;
  }

  .login-form-header__top {
    margin-bottom: 20px;
  }

  .login-form-header__icon {
    width: 44px;
    height: 44px;
  }

  .login-form-header h2 {
    font-size: 31px;
  }

  .login-form-header p {
    font-size: 12px;
  }

  .login-field__header span {
    display: none;
  }

  .login-control {
    min-height: 52px;
  }

  .login-control__prefix {
    width: 46px;
    min-width: 46px;
    height: 50px;
  }

  .login-control input {
    height: 50px;
    padding-inline: 12px;

    font-size: 16px;
  }

  .login-control__status {
    display: none;
  }

  .login-submit {
    min-height: 52px;
  }

  .login-divider {
    grid-template-columns: 1fr;
  }

  .login-divider span {
    display: none;
  }

  .login-divider small {
    text-align: center;
    white-space: normal;
  }

  .login-security {
    grid-template-columns:
      auto
      minmax(0, 1fr);
  }

  .login-security__status {
    display: none;
  }

  .login-mobile-footer {
    align-items: flex-end;
  }
}

@media (max-width: 380px) {
  .login-form-panel {
    padding: 12px;
  }

  .login-form-panel__inner {
    min-height: calc(100dvh - 24px);
    padding: 18px;
  }

  .login-form-header h2 {
    font-size: 28px;
  }

  .login-mobile-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* =========================================================
   PANTALLAS BAJAS
   ========================================================= */

@media (min-width: 821px) and (max-height: 820px) {
  .login-page {
    padding: 18px 28px;
  }

  .login-shell {
    width: min(1100px, calc(100vw - 56px));
    height: calc(100vh - 36px);
    max-height: calc(100vh - 36px);
  }

  .login-brand-panel {
    gap: 24px;
    padding: 26px 32px;
  }

  .login-form-panel {
    padding: 28px 40px;
  }

  .login-brand-panel__header {
    padding-bottom: 16px;
  }

  .login-brand-panel__content h1 {
    font-size: clamp(38px, 3.5vw, 52px);
  }

  .login-brand-panel__content > p {
    margin-top: 17px;
  }

  .login-feature-grid {
    margin-top: 22px;
  }

  .login-feature {
    padding: 11px;
  }

  .login-brand-panel__footer {
    padding-top: 15px;
  }

  .login-form-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .login-form-header__top {
    margin-bottom: 18px;
  }

  .login-form {
    gap: 14px;
  }

  .login-divider {
    margin: 20px 0 16px;
  }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .login-brand-panel::after,
  .login-brand-panel__status,
  .login-submit__loader span {
    animation: none;
  }

  .login-feature,
  .login-control,
  .login-control__toggle,
  .login-submit,
  .login-submit::before {
    transition: none;
  }
}/* =========================================================
   DRIVE DEVBLK · LOGIN · FONDOS RESPONSIVE
   PC: login pc.png
   Móvil: login celular.png
   ========================================================= */

.login-page {
  background-color: #050608;

  background-image:
    linear-gradient(
      90deg,
      rgba(3, 5, 8, 0.76) 0%,
      rgba(3, 5, 8, 0.54) 36%,
      rgba(3, 5, 8, 0.42) 68%,
      rgba(3, 5, 8, 0.68) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 5, 8, 0.18) 0%,
      rgba(3, 5, 8, 0.48) 100%
    ),
    var(--login-background-desktop);

  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat;

  background-position:
    center,
    center,
    center center;

  background-size:
    cover,
    cover,
    cover;

  background-attachment:
    fixed,
    fixed,
    fixed;
}

/* Oscurece el área exterior sin ocultar la imagen. */

.login-grid {
  opacity: 0.22;
}

.login-scanline {
  opacity: 0.12;
}

/* Panel izquierdo semitransparente para mostrar el fondo. */

.login-brand-panel {
  background:
    linear-gradient(
      150deg,
      rgba(9, 12, 17, 0.82),
      rgba(5, 7, 11, 0.9)
    );

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Panel del formulario más oscuro para mantener legibilidad. */

.login-form-panel {
  background:
    linear-gradient(
      160deg,
      rgba(8, 11, 16, 0.94),
      rgba(4, 6, 9, 0.97)
    );

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* =========================================================
   TABLET Y MÓVIL
   ========================================================= */

@media (max-width: 820px) {
  .login-page {
    background-image:
      linear-gradient(
        180deg,
        rgba(3, 5, 8, 0.34) 0%,
        rgba(3, 5, 8, 0.54) 38%,
        rgba(3, 5, 8, 0.82) 100%
      ),
      linear-gradient(
        90deg,
        rgba(3, 5, 8, 0.28),
        rgba(3, 5, 8, 0.44)
      ),
      var(--login-background-mobile);

    background-repeat:
      no-repeat,
      no-repeat,
      no-repeat;

    background-position:
      center,
      center,
      center top;

    background-size:
      cover,
      cover,
      cover;

    background-attachment:
      scroll,
      scroll,
      scroll;
  }

  .login-form-panel {
    background:
      linear-gradient(
        180deg,
        rgba(3, 6, 10, 0.18) 0%,
        rgba(3, 6, 10, 0.42) 32%,
        rgba(3, 6, 10, 0.76) 100%
      );

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .login-form-panel__inner {
    background:
      linear-gradient(
        155deg,
        rgba(10, 14, 20, 0.88),
        rgba(5, 8, 12, 0.94)
      );

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    box-shadow:
      0 22px 55px
      rgba(0, 0, 0, 0.46);
  }
}

/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 520px) {
  .login-page {
    background-position:
      center,
      center,
      center top;

    background-size:
      cover,
      cover,
      cover;
  }

  .login-form-panel {
    padding-top: max(
      18px,
      env(safe-area-inset-top)
    );

    padding-right: max(
      18px,
      env(safe-area-inset-right)
    );

    padding-bottom: max(
      18px,
      env(safe-area-inset-bottom)
    );

    padding-left: max(
      18px,
      env(safe-area-inset-left)
    );
  }

  .login-form-panel__inner {
    background:
      linear-gradient(
        155deg,
        rgba(9, 13, 19, 0.9),
        rgba(4, 7, 11, 0.96)
      );
  }
}

/* =========================================================
   PANTALLAS MUY ANGOSTAS
   ========================================================= */

@media (max-width: 380px) {
  .login-form-panel {
    padding-top: max(
      12px,
      env(safe-area-inset-top)
    );

    padding-right: max(
      12px,
      env(safe-area-inset-right)
    );

    padding-bottom: max(
      12px,
      env(safe-area-inset-bottom)
    );

    padding-left: max(
      12px,
      env(safe-area-inset-left)
    );
  }
}/* =========================================================
   DRIVE DEVBLK · LOGIN · PANELES TRANSPARENTES
   Permite visualizar mejor el fondo en PC y celular
   ========================================================= */

/* =========================================================
   ESCRITORIO
   ========================================================= */

.login-shell {
  border-color: rgba(96, 118, 138, 0.46);

  background: rgba(5, 8, 12, 0.34);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.login-brand-panel {
  background:
    linear-gradient(
      145deg,
      rgba(5, 9, 14, 0.68),
      rgba(3, 6, 10, 0.78)
    );

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.login-form-panel {
  background:
    linear-gradient(
      155deg,
      rgba(4, 7, 11, 0.72),
      rgba(2, 5, 8, 0.82)
    );

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.login-feature,
.login-security,
.login-brand-panel__badge {
  background: rgba(6, 10, 15, 0.46);
}

.login-control {
  background: rgba(4, 8, 12, 0.62);
}

.login-control:focus-within {
  background: rgba(4, 10, 15, 0.72);
}

/* =========================================================
   TABLET Y CELULAR
   ========================================================= */

@media (max-width: 820px) {
  .login-form-panel {
    background:
      linear-gradient(
        180deg,
        rgba(3, 6, 10, 0.18) 0%,
        rgba(3, 6, 10, 0.34) 35%,
        rgba(3, 6, 10, 0.58) 100%
      );

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .login-form-panel__inner {
    border-color: rgba(91, 112, 132, 0.48);

    background:
      linear-gradient(
        155deg,
        rgba(5, 9, 14, 0.68),
        rgba(2, 5, 9, 0.78)
      );

    box-shadow:
      0 20px 55px rgba(0, 0, 0, 0.38);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .login-control {
    background: rgba(3, 7, 11, 0.6);
  }

  .login-security {
    background: rgba(3, 7, 11, 0.46);
  }
}

/* =========================================================
   CELULAR
   Más transparencia para mostrar login celular.png
   ========================================================= */

@media (max-width: 520px) {
  .login-form-panel {
    background:
      linear-gradient(
        180deg,
        rgba(2, 5, 8, 0.1) 0%,
        rgba(2, 5, 8, 0.24) 32%,
        rgba(2, 5, 8, 0.48) 100%
      );
  }

  .login-form-panel__inner {
    background:
      linear-gradient(
        155deg,
        rgba(5, 9, 14, 0.58),
        rgba(2, 5, 9, 0.72)
      );

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .login-form-header {
    border-bottom-color: rgba(92, 111, 130, 0.34);
  }

  .login-control {
    border-color: rgba(104, 124, 143, 0.5);

    background: rgba(2, 6, 10, 0.54);
  }

  .login-control__prefix {
    border-right-color: rgba(104, 124, 143, 0.3);

    background: rgba(255, 255, 255, 0.018);
  }

  .login-mobile-footer {
    border-top-color: rgba(92, 111, 130, 0.34);
  }
}/* =========================================================
   DRIVE DEVBLK · LOGIN · MÁS TRANSPARENCIA
   PC Y CELULAR
   ========================================================= */

.login-shell {
  background: rgba(3, 6, 10, 0.18) !important;

  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

.login-brand-panel {
  background:
    linear-gradient(
      145deg,
      rgba(4, 8, 13, 0.46),
      rgba(2, 5, 9, 0.56)
    ) !important;

  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

.login-form-panel {
  background:
    linear-gradient(
      155deg,
      rgba(3, 7, 11, 0.48),
      rgba(1, 4, 8, 0.58)
    ) !important;

  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

.login-form-panel__inner {
  background:
    linear-gradient(
      155deg,
      rgba(4, 8, 13, 0.48),
      rgba(2, 5, 9, 0.6)
    ) !important;

  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

.login-feature,
.login-security,
.login-brand-panel__badge {
  background: rgba(3, 7, 11, 0.3) !important;
}

.login-control {
  background: rgba(2, 6, 10, 0.38) !important;
}

.login-control:focus-within {
  background: rgba(2, 7, 12, 0.48) !important;
}

/* =========================================================
   CELULAR · AÚN MÁS TRANSPARENTE
   ========================================================= */

@media (max-width: 820px) {
  .login-form-panel {
    background:
      linear-gradient(
        180deg,
        rgba(2, 5, 9, 0.06) 0%,
        rgba(2, 5, 9, 0.16) 38%,
        rgba(2, 5, 9, 0.3) 100%
      ) !important;
  }

  .login-form-panel__inner {
    background:
      linear-gradient(
        155deg,
        rgba(3, 7, 12, 0.42),
        rgba(1, 4, 8, 0.56)
      ) !important;

    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
  }

  .login-control {
    background: rgba(2, 6, 10, 0.34) !important;
  }

  .login-security {
    background: rgba(2, 6, 10, 0.28) !important;
  }
}

@media (max-width: 520px) {
  .login-form-panel {
    background:
      linear-gradient(
        180deg,
        rgba(2, 5, 9, 0.02) 0%,
        rgba(2, 5, 9, 0.1) 35%,
        rgba(2, 5, 9, 0.22) 100%
      ) !important;
  }

  .login-form-panel__inner {
    background:
      linear-gradient(
        155deg,
        rgba(3, 7, 12, 0.34),
        rgba(1, 4, 8, 0.5)
      ) !important;
  }

  .login-control {
    background: rgba(2, 6, 10, 0.3) !important;
  }

  .login-security {
    background: rgba(2, 6, 10, 0.22) !important;
  }
}/* =========================================================
   LOGIN · FORMULARIO SIN MANCHA OSCURA
   Fondo uniforme y transparente
   ========================================================= */

.login-form-panel {
  background: transparent !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.login-form-panel__inner {
  position: relative;

  overflow: hidden;

  border: 1px solid rgba(98, 123, 145, 0.42);

  background: rgba(3, 7, 11, 0.38) !important;

  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

.login-form-panel__inner::before {
  position: absolute;
  inset: 0;
  z-index: -2;

  content: "";
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(3, 7, 11, 0.18) 0%,
      rgba(3, 7, 11, 0.28) 48%,
      rgba(3, 7, 11, 0.38) 100%
    );
}

.login-form-panel__inner::after {
  position: absolute;
  inset: 0;
  z-index: -1;

  content: "";
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 229, 255, 0.018),
      transparent 46%,
      rgba(255, 42, 82, 0.018)
    );
}

.login-form-header {
  position: relative;

  background: transparent !important;
}

.login-form-header::before,
.login-form-header::after {
  display: none !important;
}

.login-form {
  position: relative;

  background: transparent !important;
}

.login-divider,
.login-security,
.login-mobile-footer {
  position: relative;
}

/* Evita bloques oscuros internos */

.login-security {
  background: rgba(3, 7, 11, 0.28) !important;
}

.login-control {
  background: rgba(2, 6, 10, 0.34) !important;
}

.login-control:focus-within {
  background: rgba(2, 7, 12, 0.46) !important;
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 820px) {
  .login-form-panel__inner {
    background: rgba(3, 7, 11, 0.3) !important;

    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
  }

  .login-form-panel__inner::before {
    background:
      linear-gradient(
        180deg,
        rgba(3, 7, 11, 0.12) 0%,
        rgba(3, 7, 11, 0.22) 55%,
        rgba(3, 7, 11, 0.32) 100%
      );
  }
}

@media (max-width: 520px) {
  .login-form-panel__inner {
    background: rgba(3, 7, 11, 0.24) !important;
  }

  .login-form-panel__inner::before {
    background:
      linear-gradient(
        180deg,
        rgba(3, 7, 11, 0.08) 0%,
        rgba(3, 7, 11, 0.16) 52%,
        rgba(3, 7, 11, 0.28) 100%
      );
  }

  .login-security {
    background: rgba(2, 6, 10, 0.2) !important;
  }

  .login-control {
    background: rgba(2, 6, 10, 0.28) !important;
  }
}