:root {
  --brand: #f18a1b;
  --brand-strong: #dd7410;
  --brand-soft: #fff3e4;
  --text: #303743;
  --muted: #7f899b;
  --line: #e8ecf2;
  --surface: #ffffff;
  --danger: #d94a4a;
  --success: #2f9b62;
}

* { box-sizing: border-box; }

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

body {
  display: grid;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 138, 27, .15), transparent 28%),
    radial-gradient(circle at 82% 86%, rgba(108, 92, 231, .16), transparent 34%),
    #171b22;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input { font: inherit; }

.shell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
}

.card {
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9b25, #f17d12);
  box-shadow: 0 10px 22px rgba(241, 138, 27, .24);
  font-size: 26px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
}

.description {
  margin: 22px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #566070;
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: #fff;
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}

input::placeholder { color: #a6adba; }

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(241, 138, 27, .11);
}

.input-status {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--success);
  font-size: 18px;
  font-weight: 800;
  transform: translateY(-50%);
}

.hint {
  min-height: 20px;
  margin: 9px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hint.error { color: var(--danger); }
.hint.success { color: var(--success); }

.submit {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff9b25, var(--brand));
  box-shadow: 0 10px 22px rgba(241, 138, 27, .22);
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s, opacity .18s;
}

.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(241, 138, 27, .28);
}

.submit:active:not(:disabled) { transform: translateY(0); }

.submit:disabled {
  opacity: .55;
  cursor: wait;
}

.result {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 13px 14px;
  color: #236b48;
  border: 1px solid #cfe8d9;
  border-radius: 11px;
  background: #f1fbf5;
}

.result-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.result strong { font-size: 13px; }

.result p {
  margin: 2px 0 0;
  font-size: 12px;
}

.security-note {
  margin: 24px 0 0;
  padding-top: 18px;
  color: #a0a8b5;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}

.hidden { display: none !important; }

@media (max-width: 520px) {
  .shell { padding: 14px; }
  .card { padding: 26px 22px; border-radius: 17px; }
  h1 { font-size: 22px; }
}
