:root {
  --accent: #12c4b0;
  --navy: #0b1d36;
  --navy-mid: #122844;
  --ink: #152033;
  --muted: #5b6b7c;
  --line: #e4eaf1;
  --paper: #f4f7fb;
  --white: #fff;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --brand: "Comfortaa", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--navy);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.brand {
  padding: 48px 56px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 196, 176, 0.18), transparent 36%),
    linear-gradient(180deg, #081525, var(--navy) 55%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
  line-height: 0.82;
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  font-family: var(--brand);
  margin-bottom: 28px;
}

.wordmark-amli {
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.wordmark-media {
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.92;
}

.badge {
  display: inline-block;
  width: fit-content;
  margin: 0 0 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 196, 176, 0.16);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.brand p:last-child {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.panel {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form {
  max-width: 420px;
  display: grid;
  gap: 16px;
}

.field label,
.check {
  font-weight: 700;
  font-size: 0.86rem;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field input:read-only {
  background: #eef2f6;
  color: var(--muted);
  cursor: not-allowed;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-row-between {
  justify-content: space-between;
}

.field-link {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.field-link:hover {
  color: var(--accent);
}

.field-info {
  position: relative;
  display: inline-flex;
}

.field-info-icon {
  display: inline-flex;
  color: var(--muted);
  cursor: help;
}

.field-info-body {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 2;
  width: min(280px, 70vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(11, 29, 54, 0.12);
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-info-body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.field-info:hover .field-info-body,
.field-info:focus-within .field-info-body {
  display: block;
}

.field-info.is-verified .field-info-icon {
  color: var(--accent);
}

.email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.email-row input {
  margin-top: 6px;
}

.btn-compact {
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
}

.is-hidden {
  display: none;
}

#password-block {
  display: grid;
  gap: 16px;
}

#password-block.is-hidden {
  display: none;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 72px;
}

.toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-35%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.check a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.check a:hover {
  color: var(--accent);
}

.switch {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.switch a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.switch a:hover {
  color: var(--accent);
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  background: var(--accent);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05);
}

.note {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.note.is-error {
  color: #b42318;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .brand {
    padding: 32px 24px 28px;
  }

  .panel {
    padding: 32px 24px 48px;
  }
}
