:root {
  --bg: #eef2f9;
  --panel: #0d1b33;
  --panel-soft: #12264a;
  --panel-light: #1b325f;
  --text: #edf5ff;
  --text-soft: rgba(237, 245, 255, 0.75);
  --line: rgba(255, 255, 255, 0.08);
  --orange: #f6c777;
  --orange-deep: #e5a94a;
  --green: #7ae2b2;
  --green-deep: #59c58f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: #0d1736;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.page-card {
  width: min(100%, 480px);
  background: linear-gradient(180deg, #0d1b33 0%, #102344 100%);
  border-radius: 22px;
  box-shadow: 0 22px 40px rgba(14, 22, 40, 0.18);
  padding: 18px 18px 24px;
}

.page-header {
  margin-bottom: 16px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.main-card {
  position: relative;
  min-height: 220px;
  padding: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 26px rgba(10, 18, 32, 0.18);
  background: transparent;
}

.reference-card {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.form-panel {
  background: linear-gradient(180deg, rgba(13, 22, 40, 0.98), rgba(18, 35, 63, 0.95));
  border-radius: 20px;
  padding: 20px 18px 18px;
}

.form-panel h2 {
  margin: 0;
  color: rgba(255,255,255,0.94);
  font-size: clamp(2rem, 7vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.form-panel > p {
  margin: 10px 0 22px;
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
}

.field-group label span {
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
}

.field-group input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  padding: 0 16px;
  outline: none;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 52px;
}

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
}

.eye-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.submit-btn {
  width: 100%;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7d8a0, #e0a95a 65%, #d19442 100%);
  color: #1c2a52;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(227, 165, 68, 0.24);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(90vw, 400px);
  padding: 26px 18px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.98), rgba(9, 16, 28, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.42);
  color: var(--text);
  text-align: center;
}

.modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #93f0bc, #56c68a);
  color: #102032;
  font-size: 2.2rem;
  font-weight: 800;
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.modal-card p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
}

.link-box {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  text-align: left;
  margin-bottom: 12px;
}

.link-box span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.link-box a {
  color: #9ed0ff;
  line-height: 1.6;
  text-decoration: none;
  word-break: break-all;
}

.link-note {
  margin: 4px 0 12px;
  color: var(--orange);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.link-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.jump-btn,
.copy-btn {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.jump-btn {
  background: linear-gradient(180deg, #f8d99d, #e8b75d);
  color: #1f2a50;
}

.copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

@media (max-width: 480px) {
  .page-card {
    border-radius: 18px;
  }

  .field-group input {
    font-size: 1.35rem;
  }
}
