:root {
  color-scheme: light;
  --ink: #17304d;
  --muted: #667184;
  --line: rgba(23, 48, 77, 0.13);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --sea: #006d77;
  --sea-dark: #064b55;
  --coral: #e46d4f;
  --lemon: #f6c85f;
  --sage: #6c9a8b;
  --danger: #b42318;
  --success: #157347;
  --shadow: 0 28px 80px rgba(28, 47, 68, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(246, 200, 95, 0.36), transparent 27%),
    radial-gradient(circle at 82% 18%, rgba(0, 109, 119, 0.22), transparent 30%),
    linear-gradient(135deg, #fff8ed 0%, #f7fbf8 42%, #eaf6f7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
}

.page {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 34px;
  place-items: center;
  overflow: hidden;
}

.shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: 28px;
  align-items: stretch;
}

.brand,
.card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.brand {
  min-height: 620px;
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 34px 10px 10px 34px;
  overflow: hidden;
}

.brand::after {
  width: 440px;
  height: 440px;
  position: absolute;
  content: "";
  border-radius: 999px;
  transform: translate(250px, 188px);
  background:
    conic-gradient(from 230deg, rgba(228, 109, 79, 0.2), rgba(0, 109, 119, 0.28), rgba(246, 200, 95, 0.34), rgba(228, 109, 79, 0.2));
  filter: blur(8px);
  opacity: 0.8;
  z-index: -1;
}

.mark {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(23, 48, 77, 0.09);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(23, 48, 77, 0.16);
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 44px 0 14px;
  color: var(--sea);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.brand-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #41536a;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.62;
}

.landscape {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 42px;
}

.tile {
  min-height: 98px;
  border-radius: 8px;
  border: 1px solid rgba(23, 48, 77, 0.08);
  background: rgba(255, 255, 255, 0.52);
  padding: 14px;
}

.tile strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.card {
  min-height: 620px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 10px 34px 34px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status {
  min-height: 68px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.status-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 109, 119, 0.12);
  color: var(--sea-dark);
  font-weight: 900;
}

.status strong {
  display: block;
  margin-bottom: 4px;
}

.status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status.success {
  border-color: rgba(21, 115, 71, 0.2);
}

.status.success .status-icon {
  background: rgba(21, 115, 71, 0.12);
  color: var(--success);
}

.status.error {
  border-color: rgba(180, 35, 24, 0.24);
}

.status.error .status-icon {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

label {
  color: #314760;
  font-size: 0.9rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(23, 48, 77, 0.16);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus {
  border-color: rgba(0, 109, 119, 0.74);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.12);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

button,
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-dark) 100%);
  box-shadow: 0 16px 32px rgba(0, 109, 119, 0.24);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 48, 77, 0.12);
  box-shadow: none;
}

.footer-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@media (max-width: 880px) {
  .page {
    padding: 18px;
    place-items: start center;
    overflow: visible;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .brand,
  .card {
    min-height: auto;
    border-radius: 18px;
  }

  .brand {
    order: 2;
    min-height: 0;
    padding-bottom: 28px;
  }

  .card {
    order: 1;
    justify-content: flex-start;
  }

  .landscape {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 12px;
  }

  .brand,
  .card {
    padding: 22px;
  }

  .brand {
    padding: 18px;
  }

  .mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .eyebrow {
    margin: 18px 0 8px;
    font-size: 0.76rem;
  }

  h1 {
    font-size: 1.85rem;
    line-height: 1.06;
  }

  .brand-copy {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .landscape {
    display: none;
  }

  .actions {
    display: grid;
  }

  button,
  .button {
    width: 100%;
  }
}
