* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182230;
  background:
    radial-gradient(circle at 50% -80px, rgba(74, 127, 212, 0.26) 0 160px, transparent 161px),
    linear-gradient(180deg, #07192d 0 190px, #f4f7fb 191px);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 38px 18px 24px;
}

.auth-panel {
  position: relative;
  width: min(520px, 100%);
  margin-top: 20px;
  background: #fff;
  border: 1px solid #d7dee9;
  border-radius: 14px;
  padding: 34px 28px 26px;
  box-shadow: 0 22px 52px rgba(18, 32, 51, 0.18);
}

.auth-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(145deg, #47c1b3, #0f8f7a);
  box-shadow: 0 14px 32px rgba(15, 143, 122, 0.28);
  transform: translateX(-50%) rotate(8deg);
}

.auth-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  transform: translateX(-50%) rotate(8deg);
}

.eyebrow {
  margin: 18px 0 6px;
  color: #0f8f7a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  color: #142033;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.lead {
  margin: 0 auto 24px;
  max-width: 420px;
  color: #5d6b82;
  line-height: 1.6;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #142033;
  font-weight: 850;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #40516a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.terms-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
}

.terms-check a {
  color: #1d4ed8;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b8c4d4;
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(47, 111, 237, 0.16);
  outline-offset: 1px;
  border-color: #2f6fed;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #0f8f7a;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, #47c1b3, #0f8f7a);
  color: #fff;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 143, 122, 0.20);
}

button:hover {
  background: linear-gradient(135deg, #39b8aa, #0d7f72);
  border-color: #0d7f72;
}

button:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.18);
}

#registerBtn {
  background: linear-gradient(#ffffff, #f3f6fb);
  color: #0d2b68;
  border-color: #b8c4d4;
  box-shadow: 0 1px 2px rgba(18, 32, 51, 0.08);
}

#registerBtn:hover {
  background: #eff6ff;
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #5d6b82;
}

.auth-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #d7dee9;
  border-radius: 8px;
  background: #f8fafc;
  color: #5d6b82;
  font-size: 13px;
  line-height: 1.55;
}

.auth-panel > .manu-settings {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.status.error {
  color: #b91c1c;
}

@media (max-width: 520px) {
  .auth-shell {
    align-items: start;
    padding: 24px 12px 14px;
  }

  .auth-panel {
    margin-top: 24px;
    padding: 30px 16px 18px;
    border-radius: 12px;
  }

  .actions {
    gap: 8px;
  }

  .actions button {
    flex: 1 1 0;
    padding: 0 10px;
    font-size: 14px;
  }

  input {
    font-size: 16px;
    line-height: 1.35;
  }
}
