.login-page {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 86px;
}

.login-heading {
  margin: 0 auto 34px;
  text-align: center;
}

.login-eyebrow {
  margin: 0 0 12px;
  color: #7d1830;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.login-heading h1 {
  margin: 0;
  color: #191919;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.25;
}

.login-panel {
  width: min(486px, 100%);
  margin: 0 auto;
  padding: 34px 28px 30px;
  border: 1px solid #dfd3bb;
  border-left: 4px solid #7d1830;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 237, 0.92)),
    #fff;
  box-shadow: 0 18px 42px rgba(94, 44, 34, 0.1);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-inline-alert {
  margin: 0;
  padding: 12px 14px;
  color: #7d1830;
  border: 1px solid #dfd3bb;
  border-left: 4px solid #7d1830;
  border-radius: 8px;
  background: #fffaf2;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.login-field-group {
  overflow: hidden;
  border: 1px solid #dfd3bb;
  border-radius: 8px;
  background: #fff;
}

.login-field {
  display: block;
  margin: 0;
}

.login-field + .login-field {
  border-top: 1px solid #eadfc9;
}

.login-field input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: #191919;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.login-field input::placeholder {
  color: #a79d93;
}

.login-field .login-id-input {
  ime-mode: inactive;
}

.login-field input.login-id-remembered {
  color: #8b817a;
  background: #f7f7f7;
}

.login-field input[aria-invalid="true"] {
  box-shadow: inset 4px 0 0 #7d1830;
}

.login-field:focus-within {
  background: #fffaf2;
}

.login-submit,
.login-social {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 56px;
  width: 100%;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease, background 200ms ease, transform 200ms ease;
}

.login-submit {
  display: block;
  color: #fff;
  border: 1px solid #7d1830;
  background: #7d1830;
  text-decoration: none;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: #65101d;
  box-shadow: 0 16px 30px rgba(101, 16, 29, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 30px 0 26px;
  color: #928982;
  font-size: 14px;
  white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  background: #dfd3bb;
  content: "";
}

.login-actions {
  display: grid;
  gap: 10px;
}

.login-social {
  position: relative;
  color: #191919;
  border: 1px solid #dfd3bb;
  background: #fff;
  text-decoration: none;
}

.login-social span:last-child {
  grid-column: 2;
}

.login-social-icon {
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 14px;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 900;
}

.login-google .login-social-icon {
  color: #7d1830;
  border: 1px solid #dfd3bb;
  background: #fbf6ed;
}

.login-social:hover,
.login-social:focus-visible {
  border-color: #7d1830;
  box-shadow: 0 16px 30px rgba(101, 16, 29, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.join-panel {
  display: grid;
  gap: 24px;
}

.join-actions {
  display: grid;
  gap: 10px;
}

.join-primary {
  display: grid;
  place-items: center;
}

.join-social-disabled,
.join-social-disabled:hover,
.join-social-disabled:focus-visible {
  color: #9d948d;
  border-color: #e4dccd;
  background: #f6f3ee;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.join-divider {
  margin: 0;
}

.join-login-link {
  color: #625a54;
}

.join-terms-form {
  display: grid;
  gap: 14px;

}

.join-terms-head {
  padding: 0px 0px 20px 0px;
  text-align:center;
  border-bottom: 1px solid #dfd3bb;
}

.join-terms-head h2 {
  margin: 0;
  color: #191919;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.join-term-all,
.join-term-item,
.join-term-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #191919;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.join-term-all {
  padding: 16px 0;
  border-bottom: 1px solid #dfd3bb;
}

.join-term-list {
  display: grid;
  gap: 12px;
}

.join-term-item {
  justify-content: space-between;
  color: #625a54;
}

.join-term-item label {
  min-width: 0;
}

.join-term-all input,
.join-term-item input {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 1px solid #343434;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 auto;
}

.join-term-all input:checked,
.join-term-item input:checked {
  color: #343434;
}

.join-term-all input:checked::before,
.join-term-item input:checked::before {
  display: block;
  color: #343434;
  font-size: 15px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  content: "✓";
}

.join-term-view {
  flex: 0 0 auto;
  padding: 0;
  color: #625a54;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.join-term-view:hover,
.join-term-view:focus-visible {
  color: #7d1830;
  outline: none;
}

.swal2-popup.join-term-popup {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 600px;
  max-width: calc(100% - 32px);
  height: 650px;
  padding: 32px 28px 24px;
}

.join-term-popup .swal2-title {
  margin: 0;
  padding: 0;
}

.join-term-popup .swal2-html-container {
  margin: 20px 0 0;
  padding: 0;
  align-self: start;
}

.join-term-popup .swal2-actions {
  align-self: end;
  margin: 20px 0 0;
}

.join-term-popup-content {
  max-height: 480px;

  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.join-next {
  margin-top: 8px;
}

.join-next:disabled,
.join-next:disabled:hover,
.join-next:disabled:focus-visible {
  color: #9d948d;
  border-color: #e4dccd;
  background: #f6f3ee;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.register-ready {
  margin: 0 0 18px;
  color: #625a54;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.register-panel {
  width: min(620px, 100%);
  padding-right: 38px;
  padding-left: 38px;
}

.register-form {
  display: grid;
  gap: 16px;
}

.register-field {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.register-password-group {
  display: grid;
  gap: 0;
  position: relative;
}

.register-password-field {
  gap: 16px;
}

.register-password-confirm-field .register-control {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.register-password-confirm-field {
  position: relative;
}

.register-password-field:first-child .register-control {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.register-field > label,
.register-field-label {
  color: #3e3833;
  font-size: 15px;
  font-weight: 800;
}

.register-control,
.register-email-domain,
.register-email-domain-input {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  color: #191919;
  border: 1px solid #dfd3bb;
  border-radius: 5px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.register-control:focus,
.register-email-domain:focus,
.register-email-domain-input:focus {
  border-color: #7d1830;
  box-shadow: 0 0 0 3px rgba(125, 24, 48, 0.1);
}

.register-control:-webkit-autofill,
.register-control:-webkit-autofill:hover,
.register-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #191919;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
}

.register-control.register-id-checked,
.register-control.register-id-checked:focus {
  color: #7f7770;
  border-color: #d9d3cb;
  background: #f0efed;
  box-shadow: none;
  cursor: not-allowed;
}

.register-control.register-id-checked:-webkit-autofill,
.register-control.register-id-checked:-webkit-autofill:focus {
  -webkit-text-fill-color: #7f7770;
  -webkit-box-shadow: 0 0 0 1000px #f0efed inset;
  box-shadow: 0 0 0 1000px #f0efed inset;
}

.register-check-button:disabled {
  color: #8b817a;
  border-color: #d9d3cb;
  background: #f0efed;
  cursor: not-allowed;
}

.register-control[aria-invalid="true"],
.register-email-domain-input[aria-invalid="true"],
.register-control.register-invalid,
.register-email-domain-input.register-invalid {
  border: 2px solid #ff6b6b !important;
  box-shadow: none !important;
}

.register-password-group.register-password-invalid::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 126px;
  z-index: 1;
  border: 2px solid #ff6b6b;
  border-radius: 5px;
  pointer-events: none;
  content: "";
}

.register-password-group.register-password-invalid .register-control {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.register-password-group.register-password-invalid .register-password-confirm-field::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 126px;
  z-index: 1;
  height: 1px;
  background: #ff6b6b;
  pointer-events: none;
  content: "";
}

.register-notice-host {
  position: relative;
}

.register-required-notice {
  position: absolute;
  top: -10px;
  left: 0;
  z-index: 2;
  padding: 0 4px;
  color: #ff6b6b;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.register-field.register-notice-host .register-required-notice {
  left: 126px;
}

.register-id-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.register-check-button {
  min-width: 88px;
  min-height: 46px;
  padding: 0 12px;
  color: #7d1830;
  border: 1px solid #7d1830;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.register-email-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(110px, 0.9fr);
  gap: 8px;
  align-items: center;
}

.register-email-at {
  color: #625a54;
  font-size: 18px;
  font-weight: 800;
}

.register-email-domain-input[readonly] {
  color: #8b817a;
  background: #f6f3ee;
}

.register-success-page {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.register-success-panel {
  width: min(486px, 100%);
  text-align: center;
}

.register-success-eyebrow {
  margin: 0 0 14px;
  color: #7d1830;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
}

.register-success-panel h1 {
  margin: 0;
  color: #191919;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
}

.register-success-message {
  margin: 20px 0 30px;
  color: #625a54;
  font-size: 15px;
  line-height: 1.7;
}

.register-success-message strong {
  color: #191919;
}

.register-success-login {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-align: center;
}

.register-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.register-cancel {
  display: grid;
  place-items: center;
  min-height: 56px;
  color: #625a54;
  border: 1px solid #dfd3bb;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.register-cancel:hover,
.register-cancel:focus-visible {
  color: #7d1830;
  border-color: #7d1830;
  outline: none;
}

.login-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: min(486px, 100%);
  margin: 22px auto 0;
  color: #8b817a;
  font-size: 14px;
  font-weight: 700;
}

.login-links a {
  color: #625a54;
  text-decoration: none;
  transition: color 180ms ease;
}

.login-links a:first-child {
  color: #191919;
  font-weight: 800;
}

.login-links a:hover,
.login-links a:focus-visible {
  color: #7d1830;
  outline: none;
}

@media (max-width: 560px) {
  .login-page {
    width: calc(100% - 36px);
    padding: 46px 0 66px;
  }

  .login-heading {
    margin-bottom: 28px;
  }

  .login-panel {
    padding: 28px 20px 24px;
  }

  .login-divider {
    gap: 10px;
    font-size: 13px;
  }

  .login-links {
    gap: 9px;
    font-size: 13px;
  }

  .register-field {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .register-password-group.register-password-invalid::after {
    left: 0;
  }

  .register-password-group.register-password-invalid .register-password-confirm-field::after {
    left: 0;
  }

  .register-field.register-notice-host .register-required-notice {
    left: 0;
  }

  .register-email-control {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .register-email-domain {
    grid-column: 1 / -1;
  }
}

.join-choice-description {
  margin: 14px 0 0;
  color: #736a63;
  font-size: 15px;
  line-height: 1.6;
}

.join-choice-panel {
  width: min(560px, 100%);
  padding: 30px;
}

.join-choice-list {
  display: grid;
  gap: 14px;
}

.join-choice-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 17px 18px;
  color: #191919;
  border: 1px solid #dfd3bb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(94, 44, 34, 0.05);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.join-choice-button:hover,
.join-choice-button:focus-visible {
  color: #191919;
  border-color: #7d1830;
  box-shadow: 0 16px 30px rgba(101, 16, 29, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.join-choice-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #7d1830;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
}

.join-choice-google .join-choice-icon {
  color: #7d1830;
  border: 1px solid #dfd3bb;
  background: #fbf6ed;
}

.join-choice-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.join-choice-copy strong {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.join-choice-copy small {
  color: #736a63;
  font-size: 13px;
  line-height: 1.45;
}

.join-choice-arrow {
  color: #7d1830;
  font-size: 23px;
  text-align: right;
}

.join-choice-links a:first-child {
  color: #625a54;
}

@media (max-width: 560px) {
  .join-choice-panel {
    padding: 20px;
  }

  .join-choice-button {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 88px;
    padding: 15px 14px;
  }

  .join-choice-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .join-choice-copy strong {
    font-size: 15px;
  }

  .join-choice-copy small {
    font-size: 12px;
  }
}