:root {
  --navy: #011133;
  --navy-2: #071b43;
  --gold: #d9b86c;
  --cream: #f7f1e3;
  --white: #ffffff;
  --muted: #bec9df;
  --line: rgba(255, 255, 255, 0.14);
  --danger: #ffb6b6;
  --success: #b7f5c9;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--navy); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 12%, rgba(217, 184, 108, 0.16), transparent 26%),
    radial-gradient(circle at 90% 17%, rgba(255, 255, 255, 0.08), transparent 22%),
    var(--navy);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.92) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,.42) 1px, transparent 1.4px);
  background-position: 0 0, 48px 60px;
  background-size: 112px 112px, 158px 158px;
}

a { color: inherit; }

.auth-page {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px 18px;
}

.auth-shell {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(7, 27, 67, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-intro {
  position: relative;
  overflow: hidden;
  padding: 62px 50px;
  background:
    linear-gradient(145deg, rgba(217, 184, 108, 0.17), transparent 52%),
    rgba(255, 255, 255, 0.025);
}

.auth-intro::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(217, 184, 108, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(217, 184, 108, 0.04),
    0 0 0 96px rgba(217, 184, 108, 0.025);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 72px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 184, 108, 0.56);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(217, 184, 108, 0.08);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 500px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 490px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.auth-panel {
  padding: 56px 50px;
  background: rgba(1, 17, 51, 0.43);
}

.auth-panel h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.025em;
}

.panel-copy {
  margin: 10px 0 29px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.field { margin-bottom: 17px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 750;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder { color: rgba(190, 201, 223, 0.58); }

input:focus {
  border-color: rgba(217, 184, 108, 0.78);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(217, 184, 108, 0.11);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 5px 0 21px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.checkbox-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.checkbox-row a, .text-link { color: var(--gold); }

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.primary-button {
  border: 0;
  color: var(--navy);
  background: var(--gold);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover, .secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.primary-button:disabled, .secondary-button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.status {
  display: none;
  margin-top: 17px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.status.is-error {
  display: block;
  color: var(--danger);
  border: 1px solid rgba(255, 120, 120, .22);
  background: rgba(255, 90, 90, .1);
}

.status.is-success {
  display: block;
  color: var(--success);
  border: 1px solid rgba(90, 230, 135, .22);
  background: rgba(70, 220, 120, .1);
}

.switch-link {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.switch-link a {
  color: var(--gold);
  font-weight: 850;
  text-decoration: none;
}

.form-tools {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
  font-size: 12px;
}

.center-card, .dashboard-shell {
  width: min(100%, 760px);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(7, 27, 67, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.center-card { text-align: center; }

.center-card h1 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 56px);
}

.center-card p, .dashboard-card p {
  color: var(--muted);
  line-height: 1.75;
}

.dashboard-shell { width: min(100%, 1000px); }

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
}

.dashboard-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}

@media (max-width: 840px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { padding: 42px 30px; }
  .brand { margin-bottom: 38px; }
  .auth-panel { padding: 42px 30px; }
}

@media (max-width: 520px) {
  .auth-page { padding: 0; }
  .auth-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
  .auth-intro, .auth-panel {
    padding-right: 22px;
    padding-left: 22px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .center-card, .dashboard-shell {
    min-height: 100vh;
    padding: 36px 22px;
    border: 0;
    border-radius: 0;
  }
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
