/* ==========================================================================
   AUDIO PLATFORM — ADMIN AUTHENTICATION UI
   Production-ready responsive stylesheet
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  --color-bg: #070912;
  --color-bg-soft: #0a0d18;
  --color-surface: rgba(16, 20, 35, 0.82);
  --color-surface-solid: #101423;
  --color-surface-elevated: #151a2c;
  --color-surface-hover: #1a2035;

  --color-primary: #7657ff;
  --color-primary-hover: #866cff;
  --color-primary-active: #6848ed;
  --color-primary-soft: rgba(118, 87, 255, 0.14);
  --color-primary-border: rgba(118, 87, 255, 0.3);

  --color-secondary: #3f8cff;
  --color-accent: #9d6cff;

  --color-success: #2dd4a3;
  --color-success-soft: rgba(45, 212, 163, 0.12);

  --color-warning: #f5b942;
  --color-warning-soft: rgba(245, 185, 66, 0.12);

  --color-danger: #ff5d7a;
  --color-danger-hover: #ff718b;
  --color-danger-soft: rgba(255, 93, 122, 0.12);

  --color-text: #f7f8ff;
  --color-text-secondary: #b8bed2;
  --color-text-muted: #7f879f;
  --color-text-subtle: #626a80;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.13);
  --color-divider: rgba(255, 255, 255, 0.07);

  --shadow-sm:
    0 4px 14px rgba(0, 0, 0, 0.18);

  --shadow-md:
    0 14px 40px rgba(0, 0, 0, 0.28);

  --shadow-lg:
    0 28px 80px rgba(0, 0, 0, 0.42);

  --shadow-primary:
    0 12px 34px rgba(118, 87, 255, 0.28);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --transition-fast: 140ms ease;
  --transition-normal: 220ms ease;
  --transition-slow: 420ms ease;

  --font-sans:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  --header-height: 82px;
  --content-max-width: 1440px;
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;

  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;

  color: var(--color-text);
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(118, 87, 255, 0.09),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(63, 140, 255, 0.07),
      transparent 30%
    ),
    var(--color-bg);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading {
  overflow: hidden;
}

button,
input,
textarea,
select {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

button,
a,
label,
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

button:not(:disabled),
a,
input[type="checkbox"]:not(:disabled),
label[for] {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #ffffff;
  background: rgba(118, 87, 255, 0.72);
}


/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(134, 108, 255, 0.65);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;

  padding: 10px 16px;
  border-radius: var(--radius-sm);

  color: #ffffff;
  background: var(--color-primary);

  font-size: 0.875rem;
  font-weight: 700;

  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}


/* ==========================================================================
   4. APP SHELL
   ========================================================================== */

.app-shell {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;
}


/* ==========================================================================
   5. BACKGROUND EFFECTS
   ========================================================================== */

.background-effects {
  position: fixed;
  inset: 0;
  z-index: -1;

  overflow: hidden;
  pointer-events: none;
}

.background-grid {
  position: absolute;
  inset: 0;

  opacity: 0.28;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );

  background-size: 52px 52px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8),
      transparent 90%
    );
}

.background-glow {
  position: absolute;

  width: 520px;
  height: 520px;

  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
}

.background-glow--one {
  top: -220px;
  left: -180px;
  background: var(--color-primary);
}

.background-glow--two {
  right: -260px;
  bottom: -200px;
  background: var(--color-secondary);
}

.background-glow--three {
  top: 38%;
  left: 47%;

  width: 380px;
  height: 380px;

  opacity: 0.08;
  background: var(--color-accent);
}

.background-noise {
  position: absolute;
  inset: 0;

  opacity: 0.018;

  background-image:
    repeating-radial-gradient(
      circle at 0 0,
      transparent 0,
      rgba(255, 255, 255, 0.8) 1px,
      transparent 2px
    );

  background-size: 7px 7px;
}


/* ==========================================================================
   6. SITE HEADER
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  max-width: var(--content-max-width);
  min-height: var(--header-height);

  margin-inline: auto;
  padding: 18px 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: 44px;
  height: 44px;

  border: 1px solid var(--color-primary-border);
  border-radius: 13px;

  color: #b7a8ff;

  background:
    linear-gradient(
      145deg,
      rgba(118, 87, 255, 0.22),
      rgba(63, 140, 255, 0.07)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 25px rgba(118, 87, 255, 0.14);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  overflow: hidden;

  color: var(--color-text);

  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-label {
  margin-top: 2px;

  color: var(--color-text-muted);

  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 8px 12px;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);

  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.025);

  font-size: 0.78rem;
  font-weight: 600;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.system-status__indicator {
  position: relative;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--color-success);

  box-shadow: 0 0 12px rgba(45, 212, 163, 0.5);
}

.system-status__indicator::after {
  content: "";

  position: absolute;
  inset: -4px;

  border: 1px solid rgba(45, 212, 163, 0.28);
  border-radius: 50%;

  animation: status-pulse 2.4s ease-out infinite;
}


/* ==========================================================================
   7. MAIN CONTENT
   ========================================================================== */

.main-content {
  position: relative;
  z-index: 1;

  display: flex;
  flex: 1;

  width: 100%;
  max-width: var(--content-max-width);

  margin-inline: auto;
  padding: 22px 40px 50px;
}

.auth-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(400px, 500px);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);

  width: 100%;
}


/* ==========================================================================
   8. AUTH OVERVIEW
   ========================================================================== */

.auth-overview {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  max-width: 680px;
  padding: 30px 0;
}

.overview-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;

  margin-bottom: 25px;
  padding: 8px 12px;

  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-pill);

  color: #b8aaff;
  background: var(--color-primary-soft);

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.overview-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.overview-content {
  max-width: 650px;
}

.eyebrow {
  margin-bottom: 9px;

  color: #9d8aff;

  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-title {
  max-width: 640px;

  color: var(--color-text);

  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.055em;

  text-wrap: balance;
}

.overview-description {
  max-width: 590px;
  margin-top: 22px;

  color: var(--color-text-secondary);

  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

.overview-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;

  margin-top: 40px;
}

.overview-feature {
  display: flex;
  flex-direction: column;
  gap: 15px;

  min-width: 0;
  padding: 18px;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.012)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-normal);
}

.overview-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(118, 87, 255, 0.24);

  background:
    linear-gradient(
      145deg,
      rgba(118, 87, 255, 0.07),
      rgba(255, 255, 255, 0.015)
    );
}

.overview-feature__icon {
  display: grid;
  place-items: center;

  width: 39px;
  height: 39px;

  border: 1px solid rgba(118, 87, 255, 0.22);
  border-radius: 11px;

  color: #a996ff;
  background: rgba(118, 87, 255, 0.1);
}

.overview-feature__icon svg {
  width: 20px;
  height: 20px;
}

.overview-feature h2 {
  margin-bottom: 5px;

  color: var(--color-text);

  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.overview-feature p {
  color: var(--color-text-muted);

  font-size: 0.75rem;
  line-height: 1.55;
}

.overview-footer {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-top: 28px;
}

.overview-footer__line {
  width: 30px;
  height: 1px;

  background:
    linear-gradient(
      to right,
      var(--color-primary),
      transparent
    );
}

.overview-footer p {
  color: var(--color-text-subtle);

  font-size: 0.74rem;
  font-weight: 500;
}


/* ==========================================================================
   9. AUTH PANEL
   ========================================================================== */

.auth-panel {
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.auth-card {
  position: relative;

  width: 100%;
  padding: clamp(26px, 3.2vw, 38px);

  overflow: hidden;

  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      rgba(20, 25, 43, 0.92),
      rgba(12, 15, 27, 0.94)
    );

  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.auth-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;

  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      rgba(157, 138, 255, 0.55),
      transparent
    );
}

.auth-card::after {
  content: "";

  position: absolute;
  top: -130px;
  right: -130px;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background: rgba(118, 87, 255, 0.08);
  filter: blur(70px);

  pointer-events: none;
}

.auth-card__header {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
}

.auth-card__icon {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;

  width: 47px;
  height: 47px;

  border: 1px solid var(--color-primary-border);
  border-radius: 14px;

  color: #b3a4ff;

  background:
    linear-gradient(
      145deg,
      rgba(118, 87, 255, 0.18),
      rgba(118, 87, 255, 0.06)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card__icon svg {
  width: 23px;
  height: 23px;
}

.auth-card__header .eyebrow {
  margin-bottom: 4px;
}

.auth-card__header h2 {
  color: var(--color-text);

  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.auth-card__description {
  grid-column: 1 / -1;

  margin-top: 20px;

  color: var(--color-text-muted);

  font-size: 0.9rem;
  line-height: 1.65;
}


/* ==========================================================================
   10. FORM ALERT
   ========================================================================== */

.form-alert {
  position: relative;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: 10px;

  margin-top: 22px;
  padding: 12px 12px 12px 13px;

  border: 1px solid rgba(255, 93, 122, 0.25);
  border-radius: var(--radius-sm);

  color: #ff9caf;
  background: var(--color-danger-soft);

  font-size: 0.8rem;
  line-height: 1.5;

  animation: alert-enter 220ms ease both;
}

.form-alert.is-success {
  color: #70e7c1;
  border-color: rgba(45, 212, 163, 0.25);
  background: var(--color-success-soft);
}

.form-alert__icon {
  margin-top: 1px;
}

.form-alert__icon svg {
  width: 18px;
  height: 18px;
}

.form-alert__close {
  display: grid;
  place-items: center;

  width: 25px;
  height: 25px;
  margin-top: -3px;
  margin-right: -3px;

  border-radius: 7px;

  color: currentColor;
  background: transparent;

  opacity: 0.72;

  transition:
    opacity var(--transition-fast),
    background var(--transition-fast);
}

.form-alert__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
}

.form-alert__close svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   11. AUTH FORM
   ========================================================================== */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;

  margin-top: 26px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 8px;
}

.form-field__heading label {
  color: var(--color-text-secondary);

  font-size: 0.79rem;
  font-weight: 650;
}

.text-link {
  color: #a895ff;

  font-size: 0.75rem;
  font-weight: 650;

  transition: color var(--transition-fast);
}

.text-link:hover {
  color: #c0b4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================================
   12. INPUT CONTROLS
   ========================================================================== */

.input-control {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
}

.input-control__icon {
  position: absolute;
  left: 14px;
  z-index: 2;

  display: grid;
  place-items: center;

  color: var(--color-text-muted);

  pointer-events: none;

  transition: color var(--transition-fast);
}

.input-control__icon svg {
  width: 19px;
  height: 19px;
}

.form-input {
  width: 100%;
  height: 50px;

  padding:
    0
    46px
    0
    44px;

  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);

  color: var(--color-text);
  background: rgba(5, 7, 14, 0.52);

  font-size: 0.88rem;
  line-height: 1;

  caret-color: #a996ff;

  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-input--password {
  padding-right: 50px;
}

.form-input::placeholder {
  color: #5e667c;
  opacity: 1;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.17);
}

.form-input:focus {
  border-color: rgba(118, 87, 255, 0.72);

  background: rgba(8, 10, 19, 0.72);

  box-shadow:
    0 0 0 3px rgba(118, 87, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.12);
}

.input-control:focus-within .input-control__icon {
  color: #a996ff;
}

.form-input.is-invalid {
  border-color: rgba(255, 93, 122, 0.65);

  box-shadow:
    0 0 0 3px rgba(255, 93, 122, 0.08);
}

.form-input.is-valid {
  border-color: rgba(45, 212, 163, 0.45);
}

.input-control__status {
  position: absolute;
  right: 14px;

  display: grid;
  place-items: center;

  color: var(--color-success);

  pointer-events: none;
}

.input-control__status svg {
  width: 18px;
  height: 18px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border-radius: 8px;

  color: var(--color-text-muted);
  background: transparent;

  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.password-toggle:hover {
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.password-toggle__show,
.password-toggle__hide {
  display: grid;
  place-items: center;
}

.password-toggle__show[hidden],
.password-toggle__hide[hidden] {
  display: none;
}


/* ==========================================================================
   13. FIELD META
   ========================================================================== */

.form-field__meta {
  min-height: 21px;
  padding-top: 6px;
}

.field-hint,
.field-error {
  font-size: 0.7rem;
  line-height: 1.45;
}

.field-hint {
  color: var(--color-text-subtle);
}

.field-error {
  display: none;
  color: var(--color-danger);
}

.form-field.has-error .field-hint {
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}


/* ==========================================================================
   14. FORM OPTIONS
   ========================================================================== */

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-top: -2px;
}

.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  min-width: 0;

  color: var(--color-text-secondary);

  user-select: none;
}

.checkbox-control input {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  opacity: 0;
  pointer-events: none;
}

.checkbox-control__box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: 18px;
  height: 18px;

  border: 1px solid var(--color-border-strong);
  border-radius: 5px;

  color: #ffffff;
  background: rgba(5, 7, 14, 0.45);

  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.checkbox-control__box svg {
  width: 13px;
  height: 13px;

  opacity: 0;
  transform: scale(0.65);

  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.checkbox-control:hover .checkbox-control__box {
  border-color: rgba(118, 87, 255, 0.55);
}

.checkbox-control input:checked + .checkbox-control__box {
  border-color: var(--color-primary);
  background: var(--color-primary);

  box-shadow:
    0 4px 12px rgba(118, 87, 255, 0.22);
}

.checkbox-control input:checked + .checkbox-control__box svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-control input:focus-visible + .checkbox-control__box {
  outline: 3px solid rgba(118, 87, 255, 0.24);
  outline-offset: 2px;
}

.checkbox-control__label {
  overflow: hidden;

  font-size: 0.78rem;
  font-weight: 550;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-note {
  color: var(--color-text-subtle);

  font-size: 0.69rem;
  font-weight: 550;
}


/* ==========================================================================
   15. PRIMARY BUTTON
   ========================================================================== */

.primary-button {
  position: relative;

  display: grid;
  place-items: center;

  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  padding: 0 20px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #6d4ff2 0%,
      #7657ff 48%,
      #6657e8 100%
    );

  box-shadow:
    var(--shadow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: 0.005em;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.primary-button::before {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 70%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.14),
      transparent
    );

  transform: skewX(-18deg);

  transition: left 600ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);

  filter: brightness(1.07);

  box-shadow:
    0 15px 38px rgba(118, 87, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary-button:hover:not(:disabled)::before {
  left: 150%;
}

.primary-button:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.primary-button__content {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.primary-button__arrow {
  width: 18px;
  height: 18px;

  transition: transform var(--transition-fast);
}

.primary-button:hover:not(:disabled) .primary-button__arrow {
  transform: translateX(3px);
}

.button-loader {
  position: relative;
  z-index: 2;

  width: 20px;
  height: 20px;

  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;

  animation: spin 700ms linear infinite;
}


/* ==========================================================================
   16. SECURITY MESSAGE
   ========================================================================== */

.security-message {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;

  padding-inline: 5px;

  color: var(--color-text-subtle);

  font-size: 0.67rem;
  line-height: 1.5;
  text-align: center;
}

.security-message svg {
  flex: 0 0 auto;

  width: 14px;
  height: 14px;
  margin-top: 1px;

  color: var(--color-text-muted);
}


/* ==========================================================================
   17. AUTH DIVIDER
   ========================================================================== */

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;

  margin: 25px 0 18px;
}

.auth-divider span {
  height: 1px;
  background: var(--color-divider);
}

.auth-divider p {
  color: var(--color-text-subtle);

  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   18. SUPPORT PANEL
   ========================================================================== */

.support-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 13px;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);

  background: rgba(255, 255, 255, 0.018);
}

.support-panel__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  border-radius: 9px;

  color: #9584ef;
  background: rgba(118, 87, 255, 0.09);
}

.support-panel__icon svg {
  width: 18px;
  height: 18px;
}

.support-panel__content {
  min-width: 0;
}

.support-panel__content h3 {
  margin-bottom: 3px;

  color: var(--color-text-secondary);

  font-size: 0.75rem;
  font-weight: 700;
}

.support-panel__content p {
  color: var(--color-text-subtle);

  font-size: 0.67rem;
  line-height: 1.5;
}


/* ==========================================================================
   19. AUTH PANEL FOOTER
   ========================================================================== */

.auth-panel__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;

  padding: 20px 10px 0;

  color: var(--color-text-subtle);

  font-size: 0.66rem;
  text-align: center;
}

.auth-panel__footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.auth-panel__footer a {
  transition: color var(--transition-fast);
}

.auth-panel__footer a:hover {
  color: var(--color-text-secondary);
}


/* ==========================================================================
   20. PAGE LOADER
   ========================================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;

  display: grid;
  place-items: center;

  padding: 24px;

  background: rgba(5, 7, 13, 0.84);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  animation: fade-in 180ms ease both;
}

.page-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;

  color: var(--color-text-secondary);

  font-size: 0.82rem;
  font-weight: 600;
}

.page-loader__spinner {
  width: 38px;
  height: 38px;

  border: 3px solid rgba(255, 255, 255, 0.09);
  border-top-color: var(--color-primary);
  border-radius: 50%;

  box-shadow:
    0 0 22px rgba(118, 87, 255, 0.2);

  animation: spin 750ms linear infinite;
}


/* ==========================================================================
   21. NOSCRIPT
   ========================================================================== */

.noscript-notice {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: grid;
  place-items: center;

  padding: 24px;

  color: var(--color-text);
  background: var(--color-bg);
}

.noscript-notice__content {
  width: min(100%, 460px);
  padding: 28px;

  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);

  background: var(--color-surface-solid);
  box-shadow: var(--shadow-lg);

  text-align: center;
}

.noscript-notice h2 {
  margin-bottom: 10px;

  font-size: 1.4rem;
  font-weight: 750;
}

.noscript-notice p {
  color: var(--color-text-muted);

  font-size: 0.9rem;
  line-height: 1.65;
}


/* ==========================================================================
   22. ANIMATIONS
   ========================================================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes status-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes alert-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ==========================================================================
   23. LARGE SCREENS
   ========================================================================== */

@media (min-width: 1600px) {
  :root {
    --content-max-width: 1540px;
  }

  .auth-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(440px, 520px);
  }
}


/* ==========================================================================
   24. LAPTOPS
   ========================================================================== */

@media (max-width: 1180px) {
  .auth-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(380px, 460px);

    gap: 50px;
  }

  .overview-features {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .overview-feature {
    flex-direction: row;
    align-items: flex-start;
  }

  .overview-title {
    font-size: clamp(2.6rem, 5vw, 4.3rem);
  }
}


/* ==========================================================================
   25. TABLETS
   ========================================================================== */

@media (max-width: 900px) {
  .site-header {
    padding-inline: 24px;
  }

  .main-content {
    padding: 20px 24px 45px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .auth-overview {
    max-width: 720px;
    margin-inline: auto;
    padding-bottom: 0;

    text-align: center;
  }

  .overview-badge {
    align-self: center;
  }

  .overview-content {
    margin-inline: auto;
  }

  .overview-description {
    margin-inline: auto;
  }

  .overview-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    max-width: none;
  }

  .overview-feature {
    flex-direction: column;
    text-align: left;
  }

  .overview-footer {
    justify-content: center;
  }

  .auth-panel {
    max-width: 540px;
    margin-inline: auto;
    justify-self: center;
  }
}


/* ==========================================================================
   26. MOBILE DEVICES
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 14px 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 0.87rem;
  }

  .brand-label {
    font-size: 0.64rem;
  }

  .system-status {
    padding: 7px 9px;
  }

  .system-status__text {
    display: none;
  }

  .main-content {
    padding: 14px 14px 34px;
  }

  .auth-layout {
    gap: 30px;
  }

  .auth-overview {
    padding-top: 15px;
  }

  .overview-badge {
    margin-bottom: 18px;
    padding: 7px 10px;

    font-size: 0.68rem;
  }

  .overview-title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .overview-description {
    margin-top: 16px;

    font-size: 0.92rem;
    line-height: 1.65;
  }

  .overview-features {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .overview-feature {
    flex-direction: row;
  }

  .overview-footer {
    margin-top: 22px;
  }

  .auth-card {
    padding: 24px 18px;

    border-radius: 20px;
  }

  .auth-card__icon {
    width: 43px;
    height: 43px;
  }

  .auth-card__description {
    margin-top: 17px;
  }

  .auth-form {
    margin-top: 23px;
  }

  .form-options {
    align-items: flex-start;
  }

  .session-note {
    text-align: right;
  }

  .auth-panel__footer {
    padding-top: 18px;
  }
}


/* ==========================================================================
   27. SMALL MOBILE DEVICES
   ========================================================================== */

@media (max-width: 400px) {
  .brand-copy {
    max-width: 180px;
  }

  .overview-title {
    font-size: 2.1rem;
  }

  .overview-feature {
    padding: 15px;
  }

  .auth-card {
    padding-inline: 15px;
  }

  .form-field__heading {
    align-items: flex-start;
  }

  .form-options {
    flex-direction: column;
    gap: 9px;
  }

  .session-note {
    padding-left: 27px;
    text-align: left;
  }
}


/* ==========================================================================
   28. SHORT VIEWPORTS
   ========================================================================== */

@media (min-width: 901px) and (max-height: 760px) {
  .site-header {
    min-height: 68px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .main-content {
    padding-top: 10px;
    padding-bottom: 25px;
  }

  .auth-card {
    padding-top: 27px;
    padding-bottom: 27px;
  }

  .auth-form {
    gap: 15px;
    margin-top: 20px;
  }

  .overview-features {
    margin-top: 27px;
  }

  .overview-footer {
    margin-top: 20px;
  }
}


/* ==========================================================================
   29. TOUCH DEVICES
   ========================================================================== */

@media (hover: none) {
  .overview-feature:hover,
  .primary-button:hover:not(:disabled) {
    transform: none;
  }

  .primary-button:hover:not(:disabled)::before {
    left: -120%;
  }
}


/* ==========================================================================
   30. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   31. HIGH CONTRAST
   ========================================================================== */

@media (prefers-contrast: more) {
  :root {
    --color-border: rgba(255, 255, 255, 0.18);
    --color-border-strong: rgba(255, 255, 255, 0.28);
    --color-text-muted: #aeb5c9;
    --color-text-subtle: #939bb0;
  }

  .form-input {
    border-width: 2px;
  }
}


/* ==========================================================================
   32. PRINT
   ========================================================================== */

@media print {
  body {
    background: #ffffff;
  }

  .app-shell,
  .page-loader,
  .noscript-notice {
    display: none !important;
  }
}
