:root {
  --sky: #63c9f3;
  --sea: #18aeca;
  --aqua: #44d5c7;
  --yellow: #ffc73b;
  --orange: #ff9138;
  --ink: #174e72;
  --muted: #6789a0;
  --line: #cfe6ef;
  --danger: #d53d53;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: #eaf9ff;
  cursor: url("assets/fishingon-cursor.png") 4 4, auto;
}

button, input { font: inherit; }
button, label { cursor: url("assets/fishingon-cursor.png") 4 4, pointer; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(520px, .92fr);
}

.world {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  color: #144f73;
  isolation: isolate;
  background: #dff7ff;
}

.illustration-stack { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.illustration {
  position: absolute;
  inset: -7% -3% -14%;
  width: 106%;
  height: 121%;
  object-fit: cover;
  object-position: center;
  opacity: .78;
  filter: saturate(.82) brightness(1.06);
}

.world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(239, 252, 255, 1) 0%, rgba(239, 252, 255, 1) 38%, rgba(232, 250, 255, .94) 47%, rgba(222, 248, 255, .25) 68%, rgba(255, 255, 255, 0) 82%),
    linear-gradient(0deg, rgba(51, 181, 219, .12), transparent 48%);
}

.content-protected .world,
.content-protected .brand,
.content-protected .illustration-stack {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.content-protected .illustration,
.content-protected .brand {
  pointer-events: none;
}

.world::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -130px;
  border: 1px solid rgba(19, 159, 196, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(68, 213, 199, .09), 0 0 0 92px rgba(99, 201, 243, .08);
}

.brand {
  width: min(230px, 72vw);
  height: 76px;
  align-self: flex-start;
  margin-left: clamp(-32px, -2vw, -18px);
  margin-top: -4px;
  background: url("assets/brand-logo-cropped.png") left center / contain no-repeat;
}

.world-copy {
  width: min(610px, 92%);
  margin: auto 0;
  padding: 72px 0;
}

.eyebrow, .step {
  margin: 0 0 18px;
  color: #f0782e;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2em;
}

.world h1 {
  margin: 0;
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: .98;
  letter-spacing: -.065em;
  color: #125b88;
  text-shadow: 0 3px 0 rgba(255, 255, 255, .82), 0 12px 35px rgba(29, 154, 192, .16);
}

.world-copy > p:not(.eyebrow) {
  margin: 28px 0 38px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
  color: #447895;
}

.signup {
  min-height: 100vh;
  padding: clamp(30px, 5vw, 76px);
  display: grid;
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 0 100%, rgba(68, 213, 199, .15), transparent 32%),
    linear-gradient(145deg, #ffffff, #effbff);
}

.card { width: min(540px, 100%); }
.card header { margin-bottom: 32px; }
.card .step { color: #209fc5; margin-bottom: 12px; }
.card h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.055em; }
.card header > p:last-child { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 13px; font-weight: 750; }
input[type="text"], input[type="password"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: #9aa5b4; }
input:focus { border-color: #20b9d1; box-shadow: 0 0 0 4px rgba(68, 213, 199, .16); background: white; }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(213, 61, 83, .1); }
.field small { color: var(--muted); font-size: 11px; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 58px; }
.reveal {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 36px;
  border: 0;
  padding: 0 9px;
  color: #1688aa;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.password-rule { margin: -10px 0 0; font-size: 11px; color: var(--muted); }
.invite-field { padding-top: 6px; }
.invite-field input { letter-spacing: .14em; text-transform: uppercase; }

.agreement { display: flex; align-items: flex-start; gap: 10px; color: #536174; font-weight: 500; line-height: 1.5; cursor: pointer; }
.agreement input { width: 17px; height: 17px; margin-top: 2px; accent-color: #18afc8; }

.submit {
  height: 58px;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: linear-gradient(100deg, #20a9d1, #67d4ef);
  box-shadow: 0 14px 28px rgba(32, 169, 209, .22);
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(32, 169, 209, .28); }
.submit:active {
  transform: translateY(1px);
  background: linear-gradient(100deg, #ff8a32, #ffb138);
  box-shadow: 0 8px 18px rgba(239, 123, 49, .25);
}
.submit:focus-visible, .reveal:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(24, 174, 202, .3); outline-offset: 3px; }
.form-status { min-height: 20px; margin: -7px 0 0; color: var(--danger); font-size: 12px; line-height: 1.55; }
.form-status.ready { color: #14818f; }

.card footer { display: flex; gap: 8px; justify-content: center; margin-top: 24px; color: var(--muted); font-size: 13px; }
.text-button, .text-link { border: 0; padding: 0; color: #1688aa; background: none; font-weight: 800; }
.text-link { text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.privacy { width: min(540px, 100%); margin: 24px 0 0; color: #788598; font-size: 11px; line-height: 1.6; text-align: center; }

@media (max-width: 940px) {
  .shell { grid-template-columns: 1fr; }
  .world { min-height: 520px; padding: 36px; }
  .world-copy { padding: 70px 0 50px; }
  .signup { min-height: auto; padding-block: 60px; }
}

@media (max-width: 560px) {
  .world { min-height: 470px; padding: 24px; }
  .world-copy { width: 100%; padding: 56px 0 38px; }
  .world h1 { font-size: 50px; }
  .signup { padding: 45px 22px; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .content-protected .illustration-stack,
  .content-protected .brand { display: none !important; }
}
