:root {
  --navy: #092b63;
  --navy-deep: #061f49;
  --navy-soft: #eaf0f8;
  --gold: #9a824e;
  --surface: #ffffff;
  --background: #f7f8fa;
  --text: #172033;
  --muted: #687386;
  --border: #dfe4eb;
  --focus: rgba(9, 43, 99, 0.16);
  --shadow: 0 24px 70px rgba(18, 31, 53, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sign-in-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
}

.brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 64px;
  color: white;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(255, 255, 255, 0.12),
      transparent 32rem
    ),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -210px;
  bottom: -210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(255, 255, 255, 0.025),
    0 0 0 100px rgba(255, 255, 255, 0.018);
}

.brand-content {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
}

.archway-logo {
  display: block;
  width: clamp(150px, 15vw, 205px);
  height: auto;
  margin-bottom: 42px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-copy h1 {
  max-width: 420px;
  margin: 0;
  color: white;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.brand-description {
  max-width: 410px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.65;
}

.sign-in-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(154, 130, 78, 0.08),
      transparent 25rem
    ),
    var(--background);
}

.sign-in-card {
  width: min(100%, 440px);
  padding: 48px;
  border: 1px solid rgba(223, 228, 235, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.mobile-brand {
  display: none;
}

.sign-in-heading {
  margin-bottom: 34px;
}

.welcome {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sign-in-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.sign-in-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.sign-in-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 9px;
}

.field label {
  color: #344054;
  font-size: 0.9rem;
  font-weight: 600;
}

.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field input::placeholder {
  color: #a1a9b5;
}

.field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--focus);
}

.primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--navy);
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(9, 43, 99, 0.16);
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.primary-button:hover {
  background: var(--navy-deep);
}

.primary-button:active {
  transform: scale(0.99);
}

.access-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.great-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.great-hearts span {
  flex: 0 0 auto;
  color: #8a94a3;
  font-size: 0.75rem;
}

.great-hearts img {
  display: block;
  width: 150px;
  max-width: 55%;
  height: auto;
}

@media (max-width: 900px) {
  .sign-in-page {
    grid-template-columns: minmax(280px, 0.75fr) minmax(440px, 1.25fr);
  }

  .brand-panel {
    padding: 42px;
  }

  .sign-in-panel {
    padding: 36px;
  }

  .sign-in-card {
    padding: 40px;
  }
}

@media (max-width: 720px) {
  .sign-in-page {
    display: block;
    min-height: 100vh;
  }

  .brand-panel {
    display: none;
  }

  .sign-in-panel {
    min-height: 100vh;
    padding: 24px 18px;
  }

  .sign-in-card {
    padding: 34px 26px;
    border-radius: 24px;
  }

  .mobile-brand {
    display: block;
    margin-bottom: 30px;
  }

  .mobile-brand img {
    display: block;
    width: 104px;
    height: auto;
    margin: 0 auto;
  }

  .sign-in-heading {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .sign-in-panel {
    padding: 14px;
  }

  .sign-in-card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .password-label {
    align-items: baseline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
