:root {
  --deep-ocean: #063046;
  --cerulean: #0f768d;
  --light-aqua: #bfe6f0;
  --ink: #10283a;
  --muted: #53656f;
  color: var(--ink);
  font-family: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fb;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgb(13 114 128 / 0.3);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.auth-page {
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.auth-bg {
  background:
    radial-gradient(circle at 12% 12%, rgb(191 230 240 / 0.75), transparent 28%),
    radial-gradient(circle at 88% 16%, rgb(255 128 0 / 0.12), transparent 20%),
    linear-gradient(180deg, #f7f8fb 0%, #f3f6fb 48%, #ffffff 100%);
  inset: 0;
  position: absolute;
  z-index: -2;
}

.auth-grid {
  background:
    linear-gradient(90deg, rgb(16 24 40 / 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgb(16 24 40 / 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  inset: 0;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.3), transparent 70%);
  opacity: 0.35;
  position: absolute;
  z-index: -1;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
}

.auth-hero {
  background: var(--deep-ocean);
  color: #ffffff;
  display: none;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.auth-hero-image,
.auth-hero-overlay {
  inset: 0;
  position: absolute;
}

.auth-hero-image {
  background-position: center;
  background-size: cover;
  mix-blend-mode: luminosity;
  opacity: 0.28;
}

.auth-hero-overlay {
  background:
    radial-gradient(circle at 28% 22%, rgb(15 118 141 / 0.34), transparent 28%),
    linear-gradient(150deg, rgb(6 48 70 / 0.88) 0%, rgb(6 48 70 / 0.76) 52%, rgb(6 48 70 / 0.96) 100%);
}

.auth-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(2.5rem, 4vw, 4.5rem) clamp(3.5rem, 5.2vw, 7rem);
  position: relative;
  width: 100%;
}

.auth-logo {
  height: auto;
  max-width: min(34rem, 78%);
  width: 100%;
}

.auth-copy {
  margin-top: 3.5rem;
  max-width: 48rem;
}

.auth-copy h1 {
  color: #ffffff;
  font-size: clamp(4rem, 6vw, 5.7rem);
  font-weight: 650;
  line-height: 0.9;
  margin: 0;
}

.auth-copy h1 span {
  display: block;
}

.auth-copy h1 span:first-child {
  white-space: nowrap;
}

.auth-copy p {
  color: rgb(255 255 255 / 0.76);
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  margin: 2rem 0 0;
  max-width: 36rem;
}

.auth-site-link,
.secondary-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  text-decoration: none;
}

.auth-site-link {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.86);
  width: fit-content;
}

.auth-highlights {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
}

.auth-highlights p {
  align-items: flex-start;
  color: rgb(255 255 255 / 0.78);
  display: flex;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 600;
  gap: 0.75rem;
  line-height: 1.65;
  margin: 0;
}

.auth-highlights span {
  background: #ffb366;
  border-radius: 999px;
  flex: 0 0 0.5rem;
  height: 0.5rem;
  margin-top: 0.72rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 34rem;
  min-height: 100vh;
  padding: 2rem 1rem;
  width: 100%;
}

.auth-mobile-site-link {
  margin-bottom: 1.5rem;
  width: fit-content;
}

.mobile-logo {
  background: var(--deep-ocean);
  display: none;
  margin: 0 -1rem 2rem;
  padding: 1.5rem;
}

.mobile-logo img {
  height: auto;
  max-width: 16rem;
  width: 100%;
}

.auth-card h2 {
  color: var(--deep-ocean);
  font-size: clamp(3.3rem, 14vw, 5rem);
  font-weight: 650;
  line-height: 0.9;
  margin: 0;
}

.auth-intro {
  color: rgb(6 48 70 / 0.7);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.65;
  margin: 1.25rem 0 0;
  max-width: 38rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.auth-form label {
  color: rgb(6 48 70 / 0.86);
  display: grid;
  font-size: 0.925rem;
  font-weight: 750;
  gap: 0.5rem;
  line-height: 1.3;
}

.auth-form input {
  background: #f8fafc;
  border: 1px solid rgb(6 48 70 / 0.14);
  border-radius: 1.1rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85);
  color: var(--ink);
  min-height: 3.25rem;
  outline: none;
  padding: 0 1rem;
  transition: background-color 160ms ease, border-color 160ms ease;
  width: 100%;
}

.auth-form input:focus {
  background: #ffffff;
  border-color: rgb(15 118 141 / 0.55);
}

.button-primary {
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  border: 1px solid rgb(16 24 40 / 0.12);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgb(16 24 40 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 750;
  min-height: 3.2rem;
  padding: 0 1.35rem;
}

.auth-error,
.profile-notice {
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
  padding: 0.85rem 1rem;
}

.auth-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.profile-notice {
  background: #fffbeb;
  border-left: 4px solid #fcd34d;
  color: #451a03;
  margin-top: 1.75rem;
}

.profile-notice p {
  margin: 0 0 0.65rem;
}

.auth-help {
  color: rgb(6 48 70 / 0.54);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.5;
  margin: 1.25rem 0 0;
}

@media (max-width: 639px) {
  .mobile-logo {
    display: block;
  }

  .auth-card {
    background: rgb(255 255 255 / 0.6);
  }
}

@media (min-width: 1024px) {
  .auth-shell {
    grid-template-columns: minmax(0, 0.57fr) minmax(31rem, 0.43fr);
  }

  .auth-hero {
    display: flex;
  }

  .auth-panel {
    margin: 0;
    max-width: none;
    padding: 2rem clamp(3.5rem, 5.5vw, 8rem);
  }

  .auth-mobile-site-link {
    display: none;
  }

  .auth-card {
    max-width: 44rem;
  }
}
