:root {
  --navy: #0b1220;
  --navy-soft: #121b2e;
  --copper: #b87333;
  --copper-bright: #d48a47;
  --paper: #f5f1e8;
  --muted: #9aa3b5;
  --line: rgba(245, 241, 232, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--navy);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  /*background-image: linear-gradient(180deg, rgba(6, 10, 20, 0.55) 0%, rgba(6, 10, 20, 0.15) 22%, rgba(6, 10, 20, 0.05) 45%, rgba(7, 10, 18, 0.65) 78%, rgba(6, 9, 16, 0.92) 100%), url("/images/port_night.jpg");
  background-size: cover;
  background-position: center 38%;*/
}

a {
  color: inherit;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*padding: 26px 5vw;*/
  padding: 20px 3vw;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--paper);
  opacity: 0.85;
}
.nav-links a:hover {
  opacity: 1;
}

.nav-links .lang-switch {
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: "Space Grotesk", sans-serif;
  opacity: 1;
}
.nav-links .lang-switch:hover {
  border-color: var(--copper-bright);
  color: var(--copper-bright);
}

main.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 5vw 60px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-head {
  margin-bottom: 28px;
}

.auth-head h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--copper-bright);
}

.auth-head p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  /*margin-bottom: 28px;*/
  margin-bottom: 10px;
}

.auth-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 0 14px;
  margin-right: 28px;
  cursor: pointer;
  position: relative;
}

.auth-tab:hover {
  color: var(--paper);
}

.auth-tab.is-active {
  color: var(--paper);
}
.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--copper-bright);
}

.auth-form label:first-of-type {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  /*margin-top: 0.5rem;*/
  margin-top: 1rem;
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.auth-form input,
.auth-form select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 11px 13px;
  border-radius: 6px;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--copper-bright);
}

.btn-primary.full {
  width: 100%;
  background: var(--copper);
  color: #1a0d02;
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 0;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s ease;
}
.btn-primary.full:hover {
  background: var(--copper-bright);
}

.auth-hint {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 18px;
}

.auth-hint a {
  color: var(--copper-bright);
  text-decoration: none;
}
.auth-hint a:hover {
  text-decoration: underline;
}

.auth-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
}

.grid2fr {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
}

.page-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  /*font-size: clamp(2.1rem, 5vw, 3.4rem);*/
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  color: white;
  line-height: 1; /* 폰트 크기가 커도 줄 높이를 최소화 */
}
