/* ===== 로그인 · 회원가입 ===== */

.auth-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  padding: calc(var(--topbar-h) + 8px) 16px 12px;
  background: var(--bg);
}

.auth__card {
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}
.auth__mark svg { width: 16px; height: 16px; }

.auth__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.auth__sub {
  margin: 6px 0 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth__form label {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
}

.auth__form .field {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
}
.auth__form .field:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.auth__submit {
  width: 100%;
  height: 44px;
  margin-top: 14px;
}

.auth__card--login {
  width: min(380px, 100%);
  padding: 10px 24px 14px;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.auth-sns__title {
  margin: 0;
  color: #1e3a8a;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.auth-sns__sub {
  margin: 6px 0 10px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
}
.auth-sns__sub strong { font-weight: 800; }

.auth-sns__row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.sns-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
.sns-btn img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.sns-btn--kakao {
  background: #fee500;
}
.sns-btn--kakao:hover { filter: brightness(.96); }
.sns-btn--naver {
  background: #03c75a;
}
.sns-btn--naver:hover { filter: brightness(.96); }
.sns-btn--google {
  background: #fff;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.sns-btn--google:hover { background: #f8f9fa; }

.auth-sns-error {
  margin: 12px 0 0;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-split {
  height: 1px;
  margin: 12px 8px 10px;
  background: #e5e7eb;
}

.auth-regular__label {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-regular__login {
  margin: 4px 0 8px;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .04em;
}

.auth__form--boxed {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: left;
  gap: 0;
}
.auth__form--boxed .field {
  height: 42px;
  border-radius: 0;
  border-color: #d1d5db;
  font-weight: 500;
}
.auth__form--boxed .field + .field { border-top: 0; }
.auth__form--boxed .field:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 2px 12px;
}

.auth-keep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.auth-keep input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-keep__mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #9ca3af;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.auth-keep input:checked + .auth-keep__mark {
  border-color: #12a565;
  background: #12a565;
}
.auth-keep input:checked + .auth-keep__mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.auth-help {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}
.auth-help span {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  font-size: 11px;
  vertical-align: middle;
}

.auth-login-btn {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  background: #1e3a5f;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.auth-login-btn:hover { background: #16304f; }
.auth-login-btn:disabled {
  opacity: .7;
  cursor: wait;
}

.auth-pills {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.auth-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.auth-pill:hover {
  border-color: #9ca3af;
  color: #374151;
}
.auth-pill--find {
  border-color: #1e3a5f;
  color: #1e3a5f;
  font-weight: 700;
}
.auth-pill--find:hover {
  background: #1e3a5f;
  color: #fff;
}

.auth-find__lead {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.auth-find-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.auth-find-tab {
  flex: 1;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.auth-find-tab.is-active {
  border-color: #1e3a5f;
  background: #1e3a5f;
  color: #fff;
}

.auth-find__result {
  margin: 12px 2px 0;
  color: #1e3a8a;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
.auth-find__result.is-empty {
  color: #b91c1c;
}

.auth__foot {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.auth__foot a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.auth__foot a:hover { text-decoration: underline; }

.topbar__home {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f4f5f7;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.topbar__home:hover { color: #fff; }

@media (max-height: 780px) {
  .auth {
    padding-top: calc(var(--topbar-h) + 4px);
    padding-bottom: 8px;
  }
  .sns-btn,
  .sns-btn img {
    width: 48px;
    height: 48px;
  }
  .auth-regular__login {
    margin: 2px 0 6px;
    font-size: 22px;
  }
  .auth__form--boxed .field { height: 36px; }
  .auth-login-btn { height: 38px; }
  .auth-pill { height: 34px; }
}
