:root {
  --ink: #07372f;
  --mint: #86ead5;
  --mint-bright: #8bf6df;
  --white: #ffffff;
  --page: #d9f3ef;
  --text: #1d2422;
  --muted: #8a9391;
  --line: #dedede;
  --footer: #053129;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family:
    Inter,
    Pretendard,
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 6px 18px 0;
}

.nav-shell {
  width: min(780px, calc(100% - 24px));
  min-height: 48px;
  margin: 0 auto;
  padding: 6px 8px 6px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(2, 34, 29, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-symbol {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
}

.brand-symbol i {
  position: absolute;
  top: 2px;
  width: 11px;
  height: 11px;
  border-radius: 70% 40% 70% 40%;
  background: var(--ink);
}

.brand-symbol i:first-child {
  left: 1px;
  transform: rotate(45deg);
}

.brand-symbol i:last-child {
  right: 1px;
  transform: rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.main-nav a,
.nav-actions a {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 3px;
  left: 50%;
  height: 1px;
  background: var(--ink);
  transition:
    right 0.2s ease,
    left 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plain-link {
  opacity: 0.55;
}

.login-link {
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--mint);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.login-page {
  width: min(420px, calc(100% - 32px));
  min-height: calc(100vh - 270px);
  margin: 0 auto;
  padding: 78px 0 80px;
}

.login-intro {
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: rgba(7, 55, 47, 0.46);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-intro h1 {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.login-intro > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.login-card {
  margin-top: 42px;
  padding: 28px 24px 25px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(31, 48, 44, 0.05);
}

.form-group + .form-group {
  margin-top: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #3c4442;
  font-size: 11px;
  font-weight: 700;
}

.form-group > input,
.password-field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  color: var(--text);
  background: var(--white);
  font-size: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group > input:focus,
.password-field input:focus {
  border-color: rgba(7, 55, 47, 0.38);
  box-shadow: 0 0 0 3px rgba(134, 234, 213, 0.18);
}

.form-group input::placeholder {
  color: #a3aaa8;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  color: #929997;
  background: transparent;
  cursor: pointer;
}

.password-toggle svg {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.password-toggle .eye-closed {
  opacity: 0;
  transform: scale(0.75);
}

.password-toggle.is-visible .eye-open {
  opacity: 0;
  transform: scale(0.75);
}

.password-toggle.is-visible .eye-closed {
  opacity: 1;
  transform: scale(1);
}

.login-button,
.register-button {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.login-button {
  margin-top: 24px;
  border: 0;
  color: var(--ink);
  background: var(--mint);
}

.login-button:hover {
  background: var(--mint-bright);
  transform: translateY(-1px);
}

.login-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.register-button {
  margin-top: 10px;
  border: 1px solid #d9d9d9;
  color: #2f3735;
  background: var(--white);
}

.register-button:hover {
  border-color: rgba(7, 55, 47, 0.3);
  transform: translateY(-1px);
}

.site-footer {
  padding: 52px 0 35px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--footer);
}

.footer-inner {
  width: min(1030px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-links {
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links strong {
  color: var(--white);
  font-size: 12px;
}

.footer-links a {
  width: fit-content;
  font-size: 11px;
  opacity: 0.62;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom strong {
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.footer-bottom p {
  margin: 12px 0 0;
  font-size: 10px;
  opacity: 0.52;
}

@media (max-width: 860px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    display: grid;
    place-content: center;
    gap: 5px;
  }

  .menu-toggle span {
    width: 18px;
    height: 1px;
    display: block;
    background: var(--ink);
  }

  .main-nav,
  .nav-actions {
    display: none;
  }

  .nav-shell.menu-open {
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .nav-shell.menu-open .main-nav,
  .nav-shell.menu-open .nav-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 8px 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 4px;
  }

  .nav-shell {
    width: calc(100% - 12px);
  }

  .login-page {
    width: calc(100% - 20px);
    padding-top: 86px;
  }

  .login-intro h1 {
    font-size: 44px;
  }

  .login-card {
    padding: 25px 18px 22px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.brand strong {
  font-weight: 500;
}
.brand strong {
  display: inline-flex;
  align-items: baseline;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: -0.05em;
}

.brand-hyper {
  display: inline-block;
  font-weight: 300;
  font-style: normal;
}

.brand-liquid {
  display: inline-block;
  font-weight: 300;
  font-style: normal;
  transform: skewX(-12deg);
  transform-origin: center bottom;
  margin-left: 1px;
}
