:root {
  --blue-60: #1300e5;
  --blue-30: #0060e5;
  --cyan-10: #00d2e5;
  --text: #111827;
  --muted: #4b5563;
  --card: #f3f4f6;
  --field: #d1d5db;
  --photo: #bac0d0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

img {
  border: 0;
  outline: 0;
  box-shadow: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page {
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 8px 0 32px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 4px max(32px, calc((100vw - 1040px) / 2)) 8px;
  border-bottom: 1px solid #c4c8ce;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--blue-60);
}

.brand-name span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-60);
}

.nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-30);
}

.nav a {
  padding: 5px 14px;
  border-radius: 999px;
}

.nav a.is-active {
  background: var(--blue-60);
  color: #fff;
}

.nav a.is-active.is-outline {
  background: #fff;
  color: var(--blue-60);
  border: 2px solid var(--blue-60);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  grid-template-areas:
    "card photo"
    "actions photo";
  column-gap: 22px;
  row-gap: 14px;
  align-items: start;
  margin-top: 18px;
}

.hero-card {
  grid-area: card;
  background: var(--card);
  border-radius: 24px;
  padding: 24px 28px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 29px;
  line-height: 1.2;
  color: var(--blue-60);
}

.hero p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.hero p:last-child {
  margin-bottom: 0;
}

.actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 0;
}

.hero-photo {
  grid-area: photo;
  align-self: stretch;
  border-radius: 22px;
  overflow: hidden;
  background: var(--photo);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: var(--photo);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
}

.btn-primary {
  background: var(--blue-60);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--blue-30);
  border-color: var(--blue-30);
}

.btn-cyan {
  background: var(--cyan-10);
  color: #111827;
}

.btn-wide {
  width: 100%;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 16px;
  color: var(--blue-60);
  font-size: 24px;
  font-weight: 800;
}

.page-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 26px 28px;
}

.auth-col .btn-wide {
  margin-top: 16px;
}

.form-error {
  color: #b91c1c;
  font-weight: 600;
  margin: 0 0 12px;
}

.signup-prompt {
  text-align: center;
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.image-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--photo);
  border-radius: 22px;
  min-height: 280px;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--photo);
}

.field-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.field-row label,
.stack-field label {
  font-size: 16px;
  font-weight: 600;
}

.field-row input,
.stack-field input,
.stack-field select {
  width: 100%;
  height: 40px;
  border: 0;
  outline: none;
  box-shadow: none;
  background: var(--field);
  border-radius: 10px;
  padding: 0 12px;
  color: #4b5563;
}

.field-row input:focus,
.stack-field input:focus,
.stack-field select:focus {
  outline: none;
  box-shadow: none;
  background: var(--field);
}

.role-q {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.role-toggle {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.role-toggle button {
  flex: 1;
  max-width: 220px;
  min-height: 40px;
  border-radius: 8px;
  border: 2px solid var(--blue-30);
  background: #fff;
  color: var(--blue-30);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.role-toggle button.is-on {
  background: var(--blue-30);
  color: #fff;
}

.link {
  color: var(--blue-30);
  text-decoration: underline;
  font-weight: 600;
}

.center-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

.login-extra {
  text-align: right;
  margin: 0 0 20px;
}

.login-card .btn-wide {
  margin-top: 8px;
}

.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.card h2 {
  margin: 0 0 14px;
  color: var(--blue-30);
  font-size: 22px;
}

.hint {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
  margin: -6px 0 14px;
}

.stack-field {
  margin-bottom: 14px;
}

.doc-label {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 6px;
}

.upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 2px dashed #9ca3af;
  background: var(--field);
  border-radius: 12px;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
}

.upload input {
  display: none;
}

.note {
  color: #6b7280;
  margin: 12px 0 0;
  font-size: 14px;
}

.provider-actions {
  max-width: 480px;
  margin: 18px auto 0;
}

.verify-box {
  background: var(--card);
  border-radius: 22px;
  padding: 40px 24px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.verify-box p {
  color: var(--blue-30);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 28px;
}

.verify-box .btn-wide {
  max-width: 380px;
  margin: 0 auto;
}

.code-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.code-row input {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: #9ca3af;
  background-color: #9ca3af;
  background-image: none;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 56px;
  color: transparent;
  caret-color: transparent;
  color-scheme: light;
}

.code-row input:hover,
.code-row input:focus,
.code-row input:focus-visible,
.code-row input:active {
  outline: none;
  box-shadow: none;
  border: 0;
  background: #9ca3af;
  background-color: #9ca3af;
}

.code-row input:not(:placeholder-shown),
.code-row input.is-filled {
  color: #111827;
  caret-color: #111827;
}

.code-row input::placeholder {
  color: transparent;
  opacity: 0;
}

.code-row input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.code-row input:-webkit-autofill,
.code-row input:-webkit-autofill:hover,
.code-row input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827;
  caret-color: #111827;
  box-shadow: 0 0 0 1000px #9ca3af inset;
  -webkit-box-shadow: 0 0 0 1000px #9ca3af inset;
  transition: background-color 9999s ease-out;
}

.timeline {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 96px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: #d1d5db;
}

.step {
  position: relative;
}

.step-dot {
  position: absolute;
  left: -90px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-60);
}

.step:last-child .step-dot {
  background: var(--cyan-10);
}

.step-thumb {
  position: absolute;
  left: -68px;
  top: 22px;
  width: 32px;
  height: 26px;
  background: #d1d5db;
  border-radius: 6px;
}

.timeline .card {
  padding: 22px 26px;
}

.timeline .btn-wide {
  margin-top: 4px;
}

.recover-copy {
  font-size: 14px;
  color: #4b5563;
  margin: -4px 0 18px;
  max-width: 720px;
  line-height: 1.5;
}

.recover-page .page-title {
  font-size: 20px;
  margin: 10px 0 6px;
}

.recover-page .recover-copy {
  font-size: 13px;
  margin: 0 0 10px;
  max-width: none;
  line-height: 1.4;
}

.recover-page .timeline {
  gap: 8px;
  padding-left: 72px;
  max-width: none;
  margin: 0;
}

.recover-page .timeline::before {
  left: 10px;
  top: 18px;
  bottom: 18px;
  width: 2px;
}

.recover-page .step-dot {
  left: -68px;
  top: 18px;
  width: 12px;
  height: 12px;
}

.recover-page .step-thumb {
  left: -50px;
  top: 14px;
  width: 26px;
  height: 18px;
}

.recover-page .timeline .card {
  padding: 12px 16px;
  border-radius: 16px;
}

.recover-page .stack-field {
  margin-bottom: 8px;
}

.recover-page .stack-field label {
  font-size: 14px;
}

.recover-page .stack-field input {
  height: 34px;
  font-size: 14px;
}

.recover-page .btn {
  min-height: 36px;
  min-width: 0;
  padding: 6px 16px;
  font-size: 14px;
}

.recover-page .code-row {
  gap: 8px;
  margin-bottom: 10px;
}

.recover-page .code-row input {
  width: 32px;
  height: 40px;
  font-size: 16px;
  line-height: 40px;
  border-radius: 6px;
}

.simple h1 {
  color: var(--blue-60);
  font-size: 26px;
}

.simple p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 980px) {
  .page {
    width: calc(100% - 32px);
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .auth-layout,
  .two-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "card"
      "actions"
      "photo";
  }

  .hero-photo,
  .image-panel {
    min-height: 280px;
    max-height: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before,
  .step-dot,
  .step-thumb {
    display: none;
  }
}
