@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f7;
  --text: #2f241f;
  --accent: #8c4141;
  --surface: #fffdfa;
  --border: rgba(47, 36, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-inner {
  width: min(1440px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
}

/* Header desktop navigation layout */

.site-header {
  width: 100%;
  background: transparent;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #cccccc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
}

body.has-sticky-header {
  padding-top: var(--sticky-header-height, 90px);
}

.header-inner {
  height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  z-index: 2;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 50px;
  align-items: center;
}

.nav a,
.auth-link {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333333;
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover,
.auth-link:hover {
  color: #8C4141;
}

.nav a:focus-visible,
.auth-link:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-menu-links a:focus-visible,
.mobile-menu-auth-link:focus-visible,
.header-search-toggle:focus-visible,
.header-search-close:focus-visible {
  outline: 2px solid #8c4141;
  outline-offset: 2px;
}

.nav-left {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 50px;
  margin-right: 50px;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-left: 50px;
  min-width: 0;
  width: 100%;
}

.menu-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  margin-left: 50px;
}

.nav-right {
  flex-wrap: nowrap;
  gap: 50px;
}

.auth-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #2f3136;
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #2f3136;
  right: -7px;
  bottom: -2px;
  transform: rotate(45deg);
  transform-origin: center;
}

.header-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.header-search-form {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  background: #f1f1f1;
  border-radius: 12px;
  padding: 34px 24px 20px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 41;
}

.header-search.is-open .header-search-form {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-search.is-open .header-search-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.header-search-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #e7e7e7;
  color: #111111;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search-form input {
  width: 100%;
  height: auto;
  border: 0;
  border-bottom: 2px solid #1d1d1d;
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
  color: #2f241f;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.header-search-form input:focus,
.header-search-form input:active,
.header-search-form input:focus-visible {
  border: 0;
  border-bottom: 2px solid #1d1d1d;
  outline: none;
  box-shadow: none;
}

.header-search-form input::-webkit-search-decoration,
.header-search-form input::-webkit-search-cancel-button,
.header-search-form input::-webkit-search-results-button,
.header-search-form input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.header-search-form input::placeholder {
  color: #111111;
  opacity: 1;
}

.header-search-help {
  margin: 14px 0 0;
  color: #606060;
  font-size: 1rem;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-link {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 500;
}

.auth-link.auth-primary {
  background: transparent;
  color: #8c4141;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
}

.auth-link.auth-primary:hover {
  color: #8c4141;
  filter: none;
}

.auth-link.is-auth-hidden,
.mobile-menu-auth-link.is-auth-hidden {
  display: none !important;
}

.auth-actions .auth-link.auth-primary.is-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333333;
}

.auth-actions .auth-link.auth-primary.is-account-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.auth-actions .auth-link.auth-primary.is-account-trigger.is-open::after {
  transform: rotate(-135deg) translateY(-1px);
}

.header-account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 168px;
  padding: 8px 0;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 70;
}

.header-account-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-account-dropdown__item {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #333333;
}

.header-account-dropdown__item.is-hidden {
  display: none;
}

.header-account-dropdown__item:hover {
  background: #f7f7f7;
}

body.login-modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.login-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.login-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 46px 40px 34px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.login-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.login-modal__close-line {
  position: absolute;
  top: 20px;
  left: 8px;
  width: 26px;
  height: 1.5px;
  background: #666666;
  transform-origin: center;
}

.login-modal__close-line:first-child {
  transform: rotate(45deg);
}

.login-modal__close-line:last-child {
  transform: rotate(-45deg);
}

.login-modal__mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.login-modal__mode-tab {
  height: 38px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fafafa;
  color: #555555;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.login-modal__mode-tab.is-active {
  border-color: #8c4141;
  color: #8c4141;
  background: #fff4f4;
}

.login-modal__mode-tabs.is-hidden,
.login-modal__intro.is-hidden,
.login-modal__signup-flow.is-hidden,
.login-modal__social-label.is-hidden,
.login-modal__social-row.is-hidden,
.login-modal__divider.is-hidden,
.login-modal__form.is-hidden,
.login-modal__hint.is-hidden,
.login-modal__profile-input.is-hidden,
.login-modal__direct-input.is-hidden {
  display: none !important;
}

.login-modal__title {
  margin: 0;
  text-align: center;
  font-size: 2.14rem;
  font-weight: 600;
  color: #111111;
}

.login-modal__subtitle {
  margin: 26px 0 10px;
  text-align: center;
  color: #222222;
  font-size: 1.22rem;
  font-weight: 700;
}

.login-modal__subcopy {
  margin: 0 0 8px;
  text-align: center;
  color: #8a8a8a;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-modal__subtitle:empty,
.login-modal__subcopy:empty {
  display: none;
}

.login-modal__signup-flow {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.login-modal__signup-panel--terms {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.login-modal__signup-panel--profile {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.login-modal__signup-panel--verify {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.login-modal__profile-heading {
  margin: 0 0 12px;
  color: #1f1f1f;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.login-modal__profile-heading--optional {
  margin-top: 40px;
}

.login-modal__profile-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.login-modal__profile-email-row .login-modal__profile-input {
  margin-bottom: 0;
}

.login-modal__signup-email-message {
  display: none;
  margin: 3px 0 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #d23b3b;
}

.login-modal__signup-nickname-message {
  margin-top: 4px;
}

.login-modal__signup-email-message:not(:empty) {
  display: inline-flex;
  align-items: center;
}

.login-modal__signup-email-message.is-success {
  color: #2f9e44;
}

.login-modal__profile-at {
  color: #5d5d5d;
  font-size: 1.15rem;
  font-weight: 400;
}

.login-modal__profile-input {
  width: 100%;
  height: 50px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 0 15px;
  margin: 0 0 14px;
  color: #8b8b8b;
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
}

.login-modal__profile-input::placeholder {
  color: #8b8b8b;
  opacity: 1;
  font-size: 0.78rem;
  font-weight: 500;
}

.login-modal__profile-input:focus,
.login-modal__profile-input:focus-visible {
  outline: 2px solid rgba(34, 34, 34, 0.13);
  border-color: #8f8f8f;
}

.login-modal__profile-select {
  appearance: none;
  -webkit-appearance: none;
  color: #8b8b8b;
  font-size: 0.78rem;
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6.25L8 10.75L12.5 6.25' stroke='%237e7e7e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 14px) 50%;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.login-modal__profile-select:focus,
.login-modal__profile-select:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 9.75L8 5.25L12.5 9.75' stroke='%237e7e7e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.login-modal__profile-select option {
  color: #8b8b8b;
  font-size: 0.78rem;
  font-weight: 500;
}

.login-modal__profile-note {
  margin: -3px 0 16px;
  color: #8b8b8b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.login-modal__profile-note--corp {
  margin-bottom: 8px;
}

.login-modal__profile-note.is-password-invalid {
  color: #8b8b8b;
}

.login-modal__profile-note.is-password-valid {
  color: #8b8b8b;
}

.login-modal__profile-note-warning {
  color: #d23b3b;
  display: block;
  margin-top: 2px;
  font-weight: 700;
}

.login-modal__profile-note-success {
  color: #2f9e44;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  font-weight: 700;
}

.login-modal__profile-note-success::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #2f9e44;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-right: 6px;
}

.login-modal__profile-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 16px;
}

.login-modal__profile-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a5a5a;
  font-size: 0.9rem;
  font-weight: 700;
}

.login-modal__profile-radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid #d6d6d6;
  background: #ffffff;
  margin: 0;
  position: relative;
}

.login-modal__profile-radio input:checked {
  border-color: var(--accent);
  border-width: 2px;
  background: #ffffff;
}

.login-modal__profile-radio input:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -54%) rotate(45deg);
}

.login-modal__signup-register {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 6px;
  background: #ececec;
  color: #c2c2c2;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.login-modal__signup-register:disabled,
.login-modal__signup-register[aria-disabled="true"] {
  cursor: not-allowed;
}

.login-modal__signup-register:not(:disabled):not([aria-disabled="true"]) {
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.login-modal__signup-register:not(:disabled):not([aria-disabled="true"]):hover,
.login-modal__signup-register:not(:disabled):not([aria-disabled="true"]):focus-visible {
  background: #7a3636;
  box-shadow: 0 6px 16px rgba(140, 65, 65, 0.24);
}

.login-modal[data-mode="signup"][data-view="choice"][data-signup-choice-stage="intro"] .login-modal__signup-flow {
  display: none !important;
}

.login-modal[data-mode="signup"][data-view="choice"][data-signup-choice-stage="terms"] .login-modal__intro {
  display: none !important;
}

.login-modal__signup-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 41px;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

.login-modal__signup-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bdbdbd;
  font-size: 1rem;
  font-weight: 700;
}

.login-modal__signup-step:not(:last-child)::after {
  content: "";
  position: static;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-top: 1.7px solid #bdbdbd;
  border-right: 1.7px solid #bdbdbd;
  transform: rotate(45deg);
}
.login-modal__signup-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #efefef;
  color: #9a9a9a;
  font-size: 0.75rem;
  font-weight: 700;
}

.login-modal__signup-step-label {
  color: #b3b3b3;
  font-size: 0.95rem;
  font-weight: 700;
}

.login-modal__signup-step.is-active .login-modal__signup-step-label {
  color: #222222;
}

.login-modal__signup-step.is-active .login-modal__signup-step-dot {
  border-color: #222222;
  background: #222222;
  color: #ffffff;
}

.login-modal__signup-step.is-complete .login-modal__signup-step-label {
  color: #b3b3b3;
}

.login-modal__signup-step.is-complete .login-modal__signup-step-dot {
  border-color: #d7d7d7;
  background: #efefef;
  color: #9a9a9a;
}

.login-modal__signup-panel.is-hidden {
  display: none;
}

.login-modal__terms-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #2d2d2d;
  font-size: 1.05rem;
  font-weight: 700;
}

.login-modal__terms-all-input,
.login-modal__terms-input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  cursor: pointer;
}

.login-modal__terms-all-input {
  width: 20px;
  height: 20px;
  border: 1.5px solid #d6d6d6;
  border-radius: 4px;
  background: #ffffff;
  position: relative;
}

.login-modal__terms-all-input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.login-modal__terms-all-input:checked::after,
.login-modal__terms-all-input:indeterminate::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-modal__terms-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e8e8e8;
}

.login-modal__terms-item {
  border-bottom: 0;
}

.login-modal__terms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}

.login-modal__terms-check {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #555555;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.42;
}

.login-modal__terms-input {
  width: 22px;
  height: 22px;
  border: 1.5px solid #d8d8d8;
  border-radius: 999px;
  background: #ffffff;
  position: relative;
  flex-shrink: 0;
}

.login-modal__terms-input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.login-modal__terms-input:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-modal__terms-toggle {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.login-modal__terms-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8c8c8c;
  border-bottom: 1.5px solid #8c8c8c;
  transform: translate(-50%, -60%) rotate(45deg);
}

.login-modal__terms-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -38%) rotate(-135deg);
}

.login-modal__terms-detail {
  margin: 0 0 10px 32px;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #6a6a6a;
  font-size: 0.9rem;
  line-height: 1.55;
  max-height: 190px;
  overflow: auto;
}

.login-modal__terms-note {
  margin: -4px 0 10px 32px;
  color: #6a6a6a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.login-modal__terms-detail--service {
  white-space: pre-wrap;
}

.login-modal__terms-detail.is-hidden {
  display: none;
}

.login-modal__signup-next {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.login-modal__signup-next:disabled,
.login-modal__signup-next[aria-disabled="true"] {
  background: #c8a7a7;
  color: #f6eeee;
  cursor: not-allowed;
}

.login-modal__verify-divider {
  width: 100%;
  height: 1px;
  background: #ececec;
  margin: 2px 0 40px;
}

.login-modal__verify-email {
  margin: 0;
  text-align: center;
  color: #1c1c1c;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.28;
  word-break: break-all;
}

.login-modal__verify-copy {
  margin: 14px 0 32px;
  text-align: center;
  color: #767676;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
}

.login-modal__verify-guide-title {
  margin: 0 0 12px;
  color: #1f1f1f;
  font-size: 1.3rem;
  font-weight: 700;
}

.login-modal__verify-guide-box {
  border: 1px solid #e9e9e9;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 18px 18px 16px;
  color: #707070;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.8;
}

.login-modal__verify-guide-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  word-break: keep-all;
}

.login-modal__verify-guide-bullet {
  flex: 0 0 auto;
  line-height: 1.8;
}

.login-modal__verify-guide-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.8;
}

.login-modal__verify-guide-item + .login-modal__verify-guide-item {
  margin-top: 2px;
}

.login-modal__verify-code-box {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.login-modal__verify-code-box .login-modal__label {
  margin: 0;
}

.login-modal__verify-warning {
  margin: 14px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff4a4a;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.5;
}

.login-modal__verify-direct-note {
  margin: 8px 0 0;
}

.login-modal__verify-warning-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #8c4141;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.login-modal__verify-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-modal__verify-actions.login-modal__verify-actions--single {
  grid-template-columns: 1fr;
}

.login-modal__verify-direct-note--below-actions {
  margin-top: 10px;
  color: #8c4141;
}

.login-modal__verify-action {
  height: 52px;
  border: 0;
  border-radius: 6px;
  background: #8c4141;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.login-modal__verify-action:hover,
.login-modal__verify-action:focus-visible {
  filter: brightness(0.95);
}

.login-modal__verify-action.is-hidden {
  display: none !important;
}

.login-modal[data-mode="login"] .login-modal__subcopy,
.login-modal[data-view="form"] .login-modal__subcopy {
  display: none;
}

.login-modal__intro {
  margin-top: 6px;
}

.login-modal__primary-cta {
  width: 100%;
  height: 58px;
  margin: 28px 0 40px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.login-modal__primary-cta:hover,
.login-modal__primary-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.login-modal__social-label {
  margin: 0 0 16px;
  text-align: center;
  color: #8a8a8a;
  font-size: 0.95rem;
  font-weight: 700;
}

.login-modal__social-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}

.login-modal__social-row--intro {
  width: 190px;
  margin: 0 auto 20px;
  gap: 18px;
}

.login-modal__social {
  height: 38px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #ffffff;
  color: #2a2a2a;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.login-modal__social-row--intro .login-modal__social {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
  justify-self: center;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9e9e9;
}

.login-modal__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.login-modal__social-icon--google {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%234285F4' d='M59.6 32.7c0-1.9-.2-3.8-.5-5.6H32v10.6h15.5c-.7 3.4-2.6 6.4-5.4 8.4v7h8.7c5.1-4.7 8.8-11.7 8.8-20.4z'/%3E%3Cpath fill='%2334A853' d='M32 60c7.8 0 14.4-2.6 19.2-6.9l-8.7-7c-2.4 1.6-5.6 2.6-10.5 2.6-8 0-14.7-5.4-17.1-12.7h-9v7.4C10.7 53.4 20.5 60 32 60z'/%3E%3Cpath fill='%23FBBC05' d='M14.9 35.9c-.6-1.6-.9-3.2-.9-4.9s.3-3.3.9-4.9v-7.4h-9C4 22.5 3 27.1 3 31s1 8.5 2.9 12.3l9-7.4z'/%3E%3Cpath fill='%23EA4335' d='M32 13.4c4.2 0 7.9 1.4 10.8 4.2l8.1-8.1C46.4 5.3 39.8 2 32 2 20.5 2 10.7 8.6 5.9 18.7l9 7.4C17.3 18.8 24 13.4 32 13.4z'/%3E%3C/svg%3E");
  color: transparent;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
}

.login-modal__social-icon--google::before {
  content: "";
}

.login-modal__social-row--intro .login-modal__social--google {
  border-color: #e9e9e9;
  background: #ffffff;
}

.login-modal__social-row--intro .login-modal__social--naver {
  border-color: #e9e9e9;
  background: #10d849;
}

.login-modal__social-icon--naver {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M15 12h11.2l12.6 18V12H49v40H37.8L25.2 34V52H15z'/%3E%3C/svg%3E");
  color: transparent;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
}

.login-modal__social-icon--naver::before {
  content: "";
}

.login-modal__social-row--intro .login-modal__social--kakao {
  border-color: #e9e9e9;
  background: #ffe100;
}

.login-modal__social-icon--kakao {
  width: 34px;
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%233C1E1E' d='M32 10c-13.3 0-24 8.7-24 19.5 0 6.8 4.3 12.8 10.8 16.2l-2.4 9.1c-.3 1 .9 1.8 1.8 1.2L29 48.8c1 .1 2 .2 3 .2 13.3 0 24-8.7 24-19.5S45.3 10 32 10z'/%3E%3C/svg%3E");
}

.login-modal__text-action {
  display: block;
  margin: 0 auto;
  border: 0;
  background: transparent;
  color: #555555;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.login-modal__social.is-disabled,
.login-modal__social:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #e3e3e3;
  background: #f7f7f7;
}

.login-modal__social--google:hover {
  border-color: #d5d5d5;
  background-image: linear-gradient(90deg, #fbbc05 0 50%, #ea4335 50% 100%),
    linear-gradient(90deg, #34a853 0 50%, #4285f4 50% 100%);
  background-size: 100% 50%, 100% 50%;
  background-position: top, bottom;
  background-repeat: no-repeat;
}

.login-modal__social--google:hover .login-modal__social-icon--google {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M59.64 32.2c0-1.82-.16-3.57-.46-5.25H32v9.94h15.54c-.67 3.6-2.71 6.65-5.78 8.7v7.22h9.34c5.47-5.03 8.54-12.44 8.54-20.61z'/%3E%3Cpath fill='%23ffffff' d='M32 60c7.74 0 14.22-2.56 18.96-6.95l-9.34-7.22c-2.6 1.74-5.93 2.77-9.62 2.77-7.39 0-13.65-4.99-15.88-11.7H6.46v7.35C11.17 53.57 20.8 60 32 60z'/%3E%3Cpath fill='%23ffffff' d='M16.12 36.9c-.57-1.73-.9-3.58-.9-5.5s.33-3.77.9-5.5v-7.35H6.46C4.86 21.74 4 26.49 4 31.4s.86 9.66 2.46 12.85l9.66-7.35z'/%3E%3Cpath fill='%23ffffff' d='M32 14.2c4.21 0 7.98 1.45 10.95 4.3l8.2-8.2C46.2 5.62 39.72 3 32 3 20.8 3 11.17 9.43 6.46 18.55l9.66 7.35C18.35 19.19 24.61 14.2 32 14.2z'/%3E%3C/svg%3E");
  color: transparent;
  font-size: 0;
  font-weight: 700;
  text-shadow: none;
}

.login-modal__social--google:hover .login-modal__social-icon--google::before {
  content: "";
}

.login-modal__social--kakao:hover {
  border-color: #3c1e1e;
  background: #3c1e1e;
}

.login-modal__social--kakao:hover .login-modal__social-icon--kakao {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M32 10c-13.3 0-24 8.7-24 19.5 0 6.8 4.3 12.8 10.8 16.2l-2.4 9.1c-.3 1 .9 1.8 1.8 1.2L29 48.8c1 .1 2 .2 3 .2 13.3 0 24-8.7 24-19.5S45.3 10 32 10z'/%3E%3C/svg%3E");
}

.login-modal__social--naver:hover {
  border-color: #2db400;
  background: #10d849;
}

.login-modal__social--naver:hover .login-modal__social-icon--naver {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' fill-rule='evenodd' d='M10.8 8.8c2.7-1.6 6.1-1.6 8.8.1l30 17.7c2.6 1.5 4.2 4.3 4.2 7.4s-1.6 5.8-4.2 7.4l-30 17.7c-2.7 1.6-6.1 1.7-8.8.1C8.1 57.6 6.4 54.7 6.4 51.6V16.4c0-3.1 1.7-6 4.4-7.6ZM22.6 23.5v17l14.6-8.5z'/%3E%3C/svg%3E");
  background-position: calc(50% + 2px) 50%;
  color: transparent;
  font-size: 0;
}

.login-modal__social--naver:hover .login-modal__social-icon--naver::before {
  content: "";
}

.login-modal__divider {
  margin: 0 0 12px;
  text-align: center;
  color: #777777;
  font-size: 0.78rem;
  position: relative;
}

.login-modal__divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #ececec;
}

.login-modal__divider span {
  position: relative;
  background: #ffffff;
  padding: 0 8px;
}

.login-modal__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
}

.login-modal__input {
  width: 100%;
  height: 44px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.login-modal__input:focus,
.login-modal__input:focus-visible {
  outline: 2px solid rgba(140, 65, 65, 0.25);
  border-color: #8c4141;
}

.login-modal__password-field {
  position: relative;
  margin: 0 0 14px;
}

.login-modal__password-field .login-modal__profile-input {
  margin-bottom: 0;
  padding-right: 46px;
}

.login-modal__password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  margin: 0;
  transform: translateY(-50%);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  color: #8b8b8b;
  cursor: pointer;
}

.login-modal__password-toggle:focus-visible {
  outline: 2px solid rgba(140, 65, 65, 0.25);
  outline-offset: 2px;
  border-radius: 999px;
}

.login-modal__password-toggle::-moz-focus-inner {
  border: 0;
}

.login-modal__password-input::-ms-reveal,
.login-modal__password-input::-ms-clear {
  display: none;
}

.login-modal__password-toggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2.5 12s3.2-6 9.5-6 9.5 6 9.5 6-3.2 6-9.5 6-9.5-6-9.5-6Z' stroke='%238b8b8b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.4' stroke='%238b8b8b' stroke-width='1.7'/%3E%3Cpath d='M4.5 4.5L19.5 19.5' stroke='%238b8b8b' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.login-modal__password-toggle.is-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2.5 12s3.2-6 9.5-6 9.5 6 9.5 6-3.2 6-9.5 6-9.5-6-9.5-6Z' stroke='%238b8b8b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.4' stroke='%238b8b8b' stroke-width='1.7'/%3E%3C/svg%3E");
}

.login-modal__confirm-group.is-hidden {
  display: none;
}

.login-modal__nickname-group.is-hidden {
  display: none;
}

.login-modal__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  font-size: 0.9rem;
  color: #333333;
}

.login-modal__message {
  margin: 0 0 12px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 500;
  color: #666666;
}

.login-modal__message:empty,
.login-modal__signup-email-message:empty {
  visibility: hidden;
}

.login-modal__message.is-success {
  color: #2f9e44;
}

.login-modal__signup-email-message.is-success {
  color: #2f9e44;
}

.login-modal__message.is-error,
.login-modal__signup-email-message.is-error {
  color: #d23b3b;
}

.login-modal__message.is-success::before,
.login-modal__message.is-error::before,
.login-modal__signup-email-message.is-success::before,
.login-modal__signup-email-message.is-error::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 5px;
}

.login-modal__message.is-success::before,
.login-modal__signup-email-message.is-success::before {
  content: "✓";
  background: #2f9e44;
}

.login-modal__message.is-error::before,
.login-modal__signup-email-message.is-error::before {
  content: "!";
  background: #d23b3b;
}

.login-modal__submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #8c4141;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.login-modal__hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #6b6b6b;
}

.login-modal__assist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
}

.login-modal__assist-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.login-modal__assist-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #4b4b4b;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.login-modal__assist-separator {
  color: #c7c7c7;
  font-size: 0.9rem;
}

.login-modal__social-label--login {
  margin: 53px 0 24px;
  color: #6a6a6a;
  font-size: 1.01rem;
  font-weight: 700;
}

.login-modal__social-row--login {
  width: 210px;
  margin: 0 auto;
  gap: 28px;
}

.login-modal__social-row--login .login-modal__social {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  padding: 0;
  justify-self: center;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9e9e9;
}

.login-modal__social-row--login .login-modal__social--google {
  border-color: #e9e9e9;
  background: #ffffff;
}

.login-modal__social-row--login .login-modal__social--google:hover,
.login-modal__social-row--login .login-modal__social--google:focus-visible {
  border-color: #d5d5d5;
  background-image: linear-gradient(90deg, #fbbc05 0 50%, #ea4335 50% 100%),
    linear-gradient(90deg, #34a853 0 50%, #4285f4 50% 100%);
  background-size: 100% 50%, 100% 50%;
  background-position: top, bottom;
  background-repeat: no-repeat;
}

.login-modal__social-row--login .login-modal__social--google:hover .login-modal__social-icon--google,
.login-modal__social-row--login .login-modal__social--google:focus-visible .login-modal__social-icon--google {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M59.64 32.2c0-1.82-.16-3.57-.46-5.25H32v9.94h15.54c-.67 3.6-2.71 6.65-5.78 8.7v7.22h9.34c5.47-5.03 8.54-12.44 8.54-20.61z'/%3E%3Cpath fill='%23ffffff' d='M32 60c7.74 0 14.22-2.56 18.96-6.95l-9.34-7.22c-2.6 1.74-5.93 2.77-9.62 2.77-7.39 0-13.65-4.99-15.88-11.7H6.46v7.35C11.17 53.57 20.8 60 32 60z'/%3E%3Cpath fill='%23ffffff' d='M16.12 36.9c-.57-1.73-.9-3.58-.9-5.5s.33-3.77.9-5.5v-7.35H6.46C4.86 21.74 4 26.49 4 31.4s.86 9.66 2.46 12.85l9.66-7.35z'/%3E%3Cpath fill='%23ffffff' d='M32 14.2c4.21 0 7.98 1.45 10.95 4.3l8.2-8.2C46.2 5.62 39.72 3 32 3 20.8 3 11.17 9.43 6.46 18.55l9.66 7.35C18.35 19.19 24.61 14.2 32 14.2z'/%3E%3C/svg%3E");
  color: transparent;
  font-size: 0;
  font-weight: 700;
  text-shadow: none;
}

.login-modal__social-row--login .login-modal__social--naver {
  border-color: #e9e9e9;
  background: #10d849;
}

.login-modal__social-row--login .login-modal__social--naver:hover,
.login-modal__social-row--login .login-modal__social--naver:focus-visible {
  border-color: #2db400;
  background: #10d849;
}

.login-modal__social-row--login .login-modal__social--naver:hover .login-modal__social-icon--naver,
.login-modal__social-row--login .login-modal__social--naver:focus-visible .login-modal__social-icon--naver {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' fill-rule='evenodd' d='M10.8 8.8c2.7-1.6 6.1-1.6 8.8.1l30 17.7c2.6 1.5 4.2 4.3 4.2 7.4s-1.6 5.8-4.2 7.4l-30 17.7c-2.7 1.6-6.1 1.7-8.8.1C8.1 57.6 6.4 54.7 6.4 51.6V16.4c0-3.1 1.7-6 4.4-7.6ZM22.6 23.5v17l14.6-8.5z'/%3E%3C/svg%3E");
  background-position: calc(50% + 2px) 50%;
  color: transparent;
  font-size: 0;
}

.login-modal__social-row--login .login-modal__social--naver:hover .login-modal__social-icon--naver::before,
.login-modal__social-row--login .login-modal__social--naver:focus-visible .login-modal__social-icon--naver::before {
  content: "";
}

.login-modal__social-row--login .login-modal__social--kakao {
  border-color: #e9e9e9;
  background: #ffe100;
}

.login-modal__social-row--login .login-modal__social--kakao:hover,
.login-modal__social-row--login .login-modal__social--kakao:focus-visible {
  border-color: #3c1e1e;
  background: #3c1e1e;
}

.login-modal__social-row--login .login-modal__social--kakao:hover .login-modal__social-icon--kakao,
.login-modal__social-row--login .login-modal__social--kakao:focus-visible .login-modal__social-icon--kakao {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M32 10c-13.3 0-24 8.7-24 19.5 0 6.8 4.3 12.8 10.8 16.2l-2.4 9.1c-.3 1 .9 1.8 1.8 1.2L29 48.8c1 .1 2 .2 3 .2 13.3 0 24-8.7 24-19.5S45.3 10 32 10z'/%3E%3C/svg%3E");
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__dialog {
  width: min(460px, calc(100% - 32px));
  padding: 60px 35px 50px;
  border-radius: 16px;
}

.login-modal[data-mode="signup"][data-view="choice"][data-signup-choice-stage="terms"]:has(.login-modal__signup-flow[data-signup-step="verify"]) .login-modal__dialog {
  padding: 60px 35px 50px;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__mode-tabs,
.login-modal[data-mode="login"][data-view="form"] .login-modal__subtitle,
.login-modal[data-mode="login"][data-view="form"] .login-modal__hint {
  display: none !important;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__title {
  margin-top: 0;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__form {
  margin-top: 20px;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__input {
  height: 50px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  padding: 0 16px;
  margin-bottom: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #666666;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__input::placeholder {
  color: #8b8b8b;
  opacity: 1;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__input:focus,
.login-modal[data-mode="login"][data-view="form"] .login-modal__input:focus-visible {
  border-color: #c0c0c0;
  outline: 2px solid rgba(0, 0, 0, 0.07);
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__message {
  min-height: 0;
  margin: 0;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__message:empty {
  display: none;
}

.login-modal[data-mode="login"][data-view="form"] #login-modal-id {
  margin-bottom: 15px;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__password-field--login {
  margin-bottom: 12px;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__password-field--login .login-modal__input {
  margin-bottom: 0;
  padding-right: 46px;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__remember {
  margin: 0;
  color: #6a6a6a;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 9px;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__remember-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #ffffff;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__remember-input:checked {
  border-color: #8c4141;
  background: #8c4141;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__remember-input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__submit {
  height: 52px;
  border-radius: 6px;
  background: #f2f2f2;
  color: #c5c5c5;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__submit:not(:disabled):not([aria-disabled="true"]) {
  background: #8c4141;
  color: #ffffff;
  cursor: pointer;
}

.login-modal[data-mode="login"][data-view="form"] .login-modal__submit:not(:disabled):not([aria-disabled="true"]):hover,
.login-modal[data-mode="login"][data-view="form"] .login-modal__submit:not(:disabled):not([aria-disabled="true"]):focus-visible {
  background: #7a3636;
}

@media (max-width: 640px) {
  .login-modal__dialog {
    width: min(560px, calc(100% - 20px));
    padding: 42px 20px 28px;
  }

  .login-modal__title {
    font-size: 2.2rem;
  }

  .login-modal__subtitle {
    font-size: 1.08rem;
  }

  .login-modal__signup-steps {
    gap: 10px;
  }

  .login-modal__signup-step {
    font-size: 0.88rem;
  }

  .login-modal__profile-heading {
    font-size: 1.05rem;
  }

  .login-modal__profile-email-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .login-modal__profile-at {
    display: none;
  }

  .login-modal__profile-input {
    height: 46px;
    font-size: 0.82rem;
  }

  .login-modal__profile-radio-row {
    gap: 12px;
  }

  .login-modal[data-mode="login"][data-view="form"] .login-modal__dialog {
    width: min(460px, calc(100% - 20px));
    padding: 34px 18px 26px;
  }

  .login-modal[data-mode="signup"][data-view="choice"][data-signup-choice-stage="terms"]:has(.login-modal__signup-flow[data-signup-step="verify"]) .login-modal__dialog {
    padding: 34px 18px 26px;
  }

  .login-modal[data-mode="login"][data-view="form"] .login-modal__title {
    font-size: 1.7rem;
  }

  .login-modal__assist-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .login-modal__social-row--login {
    width: 100%;
    max-width: 220px;
    gap: 22px;
  }

  .login-modal[data-mode="login"][data-view="form"] .login-modal__submit {
    font-size: 1rem;
  }

  .login-modal__verify-email {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .login-modal__verify-copy {
    font-size: 0.98rem;
  }

  .login-modal__verify-guide-title {
    font-size: 1.18rem;
  }

  .login-modal__verify-guide-box {
    font-size: 0.9rem;
    line-height: 1.72;
    padding: 16px 14px;
  }

  .login-modal__verify-code-box {
    margin-top: 14px;
    gap: 8px;
  }

  .login-modal__verify-warning {
    font-size: 0.86rem;
  }

  .login-modal__verify-actions {
    margin-top: 8px;
    gap: 8px;
  }

  .login-modal__verify-action {
    height: 48px;
    font-size: 0.88rem;
  }
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #6c5c53;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #5d4d44;
}

.mobile-menu-toggle {
  display: none;
  justify-self: end;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #888888;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #888888;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-panel {
  max-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  border-top: 1px solid var(--border);
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 18px 30px rgba(47, 36, 31, 0.08);
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.75rem;
}

.mobile-menu-links a {
  font-size: 1rem;
  font-weight: 600;
  color: #2f241f;
}

.mobile-menu-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.mobile-menu-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #333333;
  font-weight: 600;
}

.mobile-menu-auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #8c4141;
  font-weight: 800;
  padding: 0 0.1rem;
  border-radius: 0;
  min-height: 42px;
}

/* Mobile menu open state */

.site-header.mobile-menu-open .mobile-menu-panel {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile-only header behavior */

@media (max-width: 980px) {
  html.mobile-menu-lock,
  body.mobile-menu-lock {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  .site-header.mobile-menu-open .mobile-menu-panel {
    max-height: calc(100vh - 72px);
  }

  @supports (height: 100dvh) {
    .site-header.mobile-menu-open .mobile-menu-panel {
      max-height: calc(100dvh - 72px);
    }
  }

  .header-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 72px;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }

  .nav-left,
  .header-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-right: 0;
    margin-left: auto;
  }

  .mobile-menu-links {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  .mobile-menu-auth {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel,
  .mobile-menu-toggle span {
    transition: none;
  }
}

/* Desktop/tablet header scaling */

@media (max-width: 1400px) and (min-width: 981px) {
  .nav,
  .nav-left,
  .nav-right {
    gap: 34px;
  }

  .nav-left {
    margin-right: 32px;
  }

  .header-right {
    margin-left: 32px;
    gap: 1rem;
  }

  .menu-group {
    margin-left: 24px;
  }

  .auth-link {
    padding: 0.52rem 0.9rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .header-inner {
    height: 82px;
  }

  .nav,
  .nav-left,
  .nav-right {
    gap: 22px;
  }

  .nav a,
  .auth-link {
    font-size: 0.86rem;
  }

  .nav-left {
    margin-right: 16px;
  }

  .header-right {
    margin-left: 16px;
    gap: 0.75rem;
  }

  .menu-group {
    margin-left: 12px;
  }

  .auth-actions {
    gap: 0.4rem;
  }

  .auth-link {
    padding: 0.42rem 0.62rem;
  }
}

@media (max-width: 1024px) and (min-width: 981px) {
  .nav,
  .nav-left,
  .nav-right {
    gap: 7px;
  }

  .nav a,
  .auth-link {
    font-size: 0.76rem;
  }

  .nav-left {
    margin-right: 8px;
  }

  .header-right {
    margin-left: 8px;
    gap: 0.4rem;
  }

  .menu-group {
    margin-left: 2px;
  }

  .auth-actions {
    gap: 0.15rem;
  }

  .auth-link {
    padding: 0.34rem 0.44rem;
  }
}

@media (max-width: 760px) {
  .header-inner {
    display: flex;
  }
}
