/*
 * Executive silver — sign-in surface.
 *
 * The BDI mark is brushed metal, and the sign-in card was flat white beneath
 * it, so the two read as different products. This gives the card the same
 * platinum treatment: a cool neutral gradient, a fine light edge along the
 * top, and a deeper shadow so it sits above the page rather than on it.
 *
 * Restrained on purpose. Aurora asks for premium rather than flashy, so the
 * metal is suggested by gradient and edge light, not by chrome effects.
 */

:root {
  --silver-100: #fdfefe;
  --silver-200: #f2f5f8;
  --silver-300: #e6ebf1;
  --silver-400: #d4dbe4;
  --silver-500: #b9c3cf;
  --silver-edge: rgba(255, 255, 255, 0.92);
  --silver-ink:  #1b2a3f;
}

/* The stage the card sits on. */
.auth-overlay {
  background:
    radial-gradient(58% 42% at 50% 0%, rgba(210, 220, 232, 0.55), transparent 68%),
    linear-gradient(180deg, #eef2f7 0%, #e7ecf3 55%, #eaeef4 100%);
}

.auth-shell__badge {
  background: linear-gradient(180deg, var(--silver-100), var(--silver-300));
  border: 1px solid var(--silver-400);
  box-shadow:
    inset 0 1px 0 var(--silver-edge),
    0 2px 6px rgba(27, 42, 63, 0.10);
  color: var(--silver-ink);
  letter-spacing: 0.16em;
}

/* The card itself: brushed platinum, lit from above. */
.auth-panel,
.auth-panel__card,
.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, var(--silver-200) 42%, var(--silver-300) 100%);
  border: 1px solid var(--silver-400);
  box-shadow:
    inset 0 1px 0 var(--silver-edge),
    inset 0 -1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(27, 42, 63, 0.06),
    0 18px 44px rgba(27, 42, 63, 0.16),
    0 40px 90px rgba(27, 42, 63, 0.10);
}

/* A single hairline of light across the top edge, as metal catches it. */
.auth-panel { position: relative; overflow: hidden; }
.auth-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}

/* The brand side reads a shade cooler, so the two halves separate cleanly. */
.auth-panel__brand {
  background: linear-gradient(165deg, var(--silver-200) 0%, var(--silver-300) 60%, var(--silver-400) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset -1px 0 0 var(--silver-400);
}

.auth-logo {
  filter: drop-shadow(0 6px 14px rgba(27, 42, 63, 0.22));
}

.auth-kicker {
  color: #5c6b80;
  letter-spacing: 0.18em;
}

/* Fields sit slightly recessed, as though milled into the panel. */
.auth-panel .input,
.auth-card .input {
  background: linear-gradient(180deg, #ffffff, var(--silver-100));
  border: 1px solid var(--silver-400);
  box-shadow:
    inset 0 1px 2px rgba(27, 42, 63, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75);
  color: var(--silver-ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-panel .input:focus,
.auth-card .input:focus {
  outline: none;
  border-color: var(--corevex-accent, #1f5fbf);
  box-shadow:
    inset 0 1px 2px rgba(27, 42, 63, 0.06),
    0 0 0 3px var(--corevex-accent-soft, rgba(31, 95, 191, 0.16));
}

.auth-panel .form-field > span,
.auth-card .form-field > span {
  color: #56657a;
  font-weight: 600;
}

/* The one warm element on the panel stays the action. */
.auth-actions .primary-btn,
.auth-panel .primary-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(27, 42, 63, 0.18);
}

@media (prefers-color-scheme: dark) {
  .auth-overlay {
    background:
      radial-gradient(58% 42% at 50% 0%, rgba(78, 94, 116, 0.32), transparent 68%),
      linear-gradient(180deg, #161c26 0%, #10151d 100%);
  }
  .auth-panel,
  .auth-panel__card,
  .auth-card {
    background: linear-gradient(180deg, #2a323f 0%, #222935 46%, #1b212b 100%);
    border-color: #3a4453;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.10),
      0 22px 50px rgba(0, 0, 0, 0.55);
  }
  .auth-panel__brand {
    background: linear-gradient(165deg, #262e3a, #1d242e);
    border-right-color: #3a4453;
    box-shadow: inset -1px 0 0 #3a4453;
  }
}