/* ══════════════════════════════════
   ACCOUNTS — Auth Page Styles
══════════════════════════════════ */

/* ══════════════════════════════════
   SECTION LAYOUT
══════════════════════════════════ */
.auth-section {
  position: relative;
  z-index: 10;
  padding: var(--spacing-2xl) 0 120px;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: flex-start;
}

.auth-section .container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ══════════════════════════════════
   SECTION HEADER
══════════════════════════════════ */
.auth-section .section-header {
  text-align: center;
  margin-bottom: 0;
}
.auth-section .section-header__annotation {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}
.auth-section .section-header__annotation::before {
  content: '///';
  color: var(--color-lime);
  font-weight: 700;
}
.auth-section .section-header__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--spacing-lg);
}
.auth-section .section-header__underline {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.auth-section .section-header__underline svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ══════════════════════════════════
   AUTH CARD
══════════════════════════════════ */
.auth-card {
  position: relative;
  background: #0a0a0a;
  border: 1px dashed var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.45);
}

/* ── Topbar ── */
.auth-card__topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px dashed var(--color-border);
}

.auth-card__topbar-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: invert(1);
  opacity: 0.45;
}

.auth-card__topbar-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-card__ref {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.auth-card__tag {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey);
  opacity: 0.6;
}

/* ── Content ── */
.auth-card__content {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ── Description ── */
.auth-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: 0;
}

/* ── Slash Divider ── */
.auth-card__divider {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--color-grey);
  opacity: 0.6;
  overflow: hidden;
  font-weight: bold;
  margin: var(--spacing-sm) 0;
}
.auth-card__divider::before {
  content: "////////////////////////////////////////////////////";
  flex: 1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  direction: rtl;
}
.auth-card__divider-pipe {
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
  padding: 0 2px;
}
.auth-card__divider::after {
  content: "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";
  flex: 1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

/* ── Sys Block (data readouts) ── */
.auth-card__sys-block {
  padding-top: 0;
}

.auth-card__data-readout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-data-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-data-row__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: invert(1);
  opacity: 0.4;
}

.auth-data-row__label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey);
  opacity: 0.6;
  min-width: 60px;
}

.auth-data-row__val {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey);
  opacity: 0.6;
}

/* ── Footer ── */
.auth-card__foot {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.auth-card__foot-sys {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey);
  opacity: 0.6;
  white-space: nowrap;
}

.auth-card__foot-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.auth-card__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lime);
  transition: opacity 0.15s;
  white-space: nowrap;
}
.auth-card__link:hover {
  opacity: 0.7;
}

.auth-card__foot-divider {
  color: var(--color-grey);
  font-size: 10px;
  opacity: 0.4;
}

/* ══════════════════════════════════
   FORM
══════════════════════════════════ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.form__input {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  background: rgba(10, 10, 10, 0.6);
  border: 1px dashed var(--color-border);
  color: var(--color-white);
  padding: 12px 14px;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.form__input::placeholder {
  color: rgba(142, 142, 142, 0.5);
  letter-spacing: 0.1em;
}
.form__input:focus {
  outline: none;
  border-color: var(--color-lime);
  background: rgba(8, 239, 80, 0.03);
  box-shadow: 0 0 0 3px rgba(8, 239, 80, 0.08);
}
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
  -webkit-text-fill-color: var(--color-white);
  border: 1px dashed var(--color-border);
  transition: background-color 5000s ease-in-out 0s;
}

.form__error {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #ff6b6b;
}

/* ── Password Toggle ── */
.form__password-wrap {
  position: relative;
}
.form__password-wrap .form__input {
  padding-right: 44px;
}
.form__password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey);
  opacity: 0.5;
  transition: opacity 0.15s;
}
.form__password-toggle:hover {
  opacity: 0.9;
}
.form__password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form__help {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-grey);
  text-transform: uppercase;
}

.auth-form__submit {
  margin-top: var(--spacing-sm);
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════
   MESSAGES
══════════════════════════════════ */
.auth-messages {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.auth-message {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-left: 2px solid var(--color-lime);
  background: rgba(8, 239, 80, 0.06);
  color: var(--color-white);
}
.auth-message--error {
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.06);
  color: #ff6b6b;
}
.auth-message--warning {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.06);
  color: #ffc107;
}

/* ══════════════════════════════════
   SPLIT LAYOUT (Login w/ Video)
══════════════════════════════════ */
.auth-section--split {
  align-items: center;
  flex-direction: column;
}

.auth-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--spacing-2xl);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.auth-layout__form {
  flex: 1;
  max-width: 420px;
}

.auth-layout__media {
  flex: 1.2;
  max-width: 520px;
  display: flex;
}

/* ── Media Card (mirrors hero-card--media) ── */
.auth-media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #0a0a0a;
  border: 1px dashed var(--color-border);
  overflow: hidden;
  box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.45);
}

.auth-media-card__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: var(--spacing-lg);
  border-bottom: 1px dashed var(--color-border);
}

.auth-media-card__topbar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: invert(1);
  opacity: 0.5;
}

.auth-media-card__topbar-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-media-card__ref {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.auth-media-card__ver {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey);
  opacity: 0.6;
}

/* ── Media Body ── */
.auth-media-card__body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

.auth-media-card__body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(10, 10, 10, 0.6) 70%,
    rgba(10, 10, 10, 0.95) 100%
  );
  pointer-events: none;
}

.auth-media-card__video {
  display: block;
  width: 85%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: screen;
  filter: contrast(1.1) brightness(1) saturate(0.75);
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.auth-media-card__foot {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey);
  opacity: 0.6;
  border-top: 1px dashed var(--color-border);
  padding: var(--spacing-sm) var(--spacing-lg);
  margin-top: auto;
}

/* ── Media HUD (scoped to auth) ── */
.auth-media-card .media-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-media-card .media-hud__corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 14px;
  width: 150px;
  height: 56px;
  overflow: hidden;
}
.auth-media-card .media-hud__corner span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-media-card .media-hud__corner--tl { top: 0; left: 0; border-right: 1px dashed rgba(255,255,255,0.12); border-bottom: 1px dashed rgba(255,255,255,0.12); }
.auth-media-card .media-hud__corner--tr { top: 0; right: 0; align-items: flex-end; border-left: 1px dashed rgba(255,255,255,0.12); border-bottom: 1px dashed rgba(255,255,255,0.12); }
.auth-media-card .media-hud__corner--bl { bottom: 0; left: 0; border-right: 1px dashed rgba(255,255,255,0.12); border-top: 1px dashed rgba(255,255,255,0.12); }
.auth-media-card .media-hud__corner--br {
  bottom: 0; right: 0;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 8px;
  border-left: 1px dashed rgba(255,255,255,0.12);
  border-top: 1px dashed rgba(255,255,255,0.12);
}
.auth-media-card .media-hud__corner--br .media-hud__status-dot {
  flex-shrink: 0;
  min-width: 5px;
  overflow: visible;
}
.auth-media-card .media-hud__corner--br .media-hud__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  line-height: 1;
}

.auth-media-card .media-hud__label {
  color: rgba(255, 255, 255, 0.3);
}
.auth-media-card .media-hud__val {
  color: rgba(255, 255, 255, 0.5);
}

.auth-media-card .media-hud__status-dot {
  margin-bottom: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent, #00ff85);
  box-shadow: 0 0 6px var(--color-accent, #00ff85);
  animation: auth-hud-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes auth-hud-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.auth-media-card .media-hud__data-stream {
  position: absolute;
  inset: 60px 0;
  pointer-events: none;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.auth-media-card .media-hud__stream-line {
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 7px;
  letter-spacing: 0.2em;
  padding: 16px 5px;
  display: flex;
  align-items: center;
}
.auth-media-card .media-hud__stream-line:first-child {
  border-right: 1px dashed rgba(255,255,255,0.07);
  padding-left: 10px;
  transform: rotate(180deg);
}
.auth-media-card .media-hud__stream-line:last-child {
  border-left: 1px dashed rgba(255,255,255,0.07);
  padding-right: 10px;
}
.auth-media-card .media-hud__stream-line:nth-child(2) { display: none; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {
  .auth-section {
    padding: var(--spacing-xl) 0 80px;
  }
  .auth-card__content {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  .auth-card__topbar {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: 10px;
  }
  .auth-card__topbar-icon {
    width: 26px;
    height: 26px;
  }
  .auth-card__foot {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  .auth-card__foot-links {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  /* Split layout stacks on mobile */
  .auth-layout {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-xl);
  }
  .auth-layout__form {
    max-width: 100%;
  }
  .auth-layout__media {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .auth-media-card__body {
    min-height: 360px;
  }
  .auth-media-card__topbar {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: 10px;
  }
  .auth-media-card__topbar-icon {
    width: 26px;
    height: 26px;
  }
  .auth-media-card .media-hud__corner {
    width: 120px;
    height: 46px;
    padding: 0 10px;
    font-size: 8px;
  }
  .auth-media-card .media-hud__data-stream {
    inset: 50px 0;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .auth-section .section-header__title {
    font-size: 24px;
  }
  .auth-card__ref {
    font-size: 10px;
  }
  .auth-card__tag {
    font-size: 9px;
  }
  .auth-media-card__body {
    min-height: 300px;
  }
}
