.hf-member-auth-dialog {
  --hf-modal-dialog-width: 430px;
}

.hf-member-auth-header {
  padding-right: 36px;
}

.hf-member-auth-header h2 {
  margin: 0;
  color: var(--hf-color-text-strong);
  line-height: 1.3;
}

.hf-member-auth-header p {
  margin: 8px 0 10px;
  color: var(--hf-color-muted);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.hf-member-auth-step[hidden],
.hf-member-recent-badge[hidden],
.hf-member-otp-fields[hidden],
.hf-member-signup-status[hidden] {
  display: none !important;
}

.hf-member-auth-step {
  min-width: 0;
}

.hf-member-login-benefits {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--hf-color-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}

.hf-member-login-benefits li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hf-member-login-benefits .fa {
  flex: 0 0 auto;
  color: var(--hf-color-primary);
  font-size: 11px;
}

.hf-member-login-benefits strong {
  color: var(--hf-color-primary-text);
  font-weight: 600;
}

.hf-member-provider-button,
.hf-member-primary-button,
.hf-member-secondary-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.hf-member-provider-button {
  min-height: 40px;
  border-radius: 4px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.25px;
}

.hf-member-provider-button:disabled,
.hf-member-primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hf-member-provider-button--kakao {
  position: relative;
  color: #191919;
  background: #fee500;
}

.hf-member-provider-button--kakao:hover,
.hf-member-provider-button--kakao:focus {
  color: #191919;
  background: #f5dc00;
  outline: none;
}

html[data-hf-theme="dark"] .hf-member-provider-button--kakao:hover,
html[data-hf-theme="dark"] .hf-member-provider-button--kakao:focus {
  color: #191919;
  background: #f5dc00;
  outline: none;
}

.hf-member-provider-symbol {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hf-member-provider-label {
  transform: scale(0.95) translateX(14px);
}

.hf-member-google-row {
  position: relative;
  min-height: 40px;
  margin-top: 10px;
}

.hf-member-google-button {
  width: 100%;
  height: 40px;
  min-height: 40px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.hf-member-google-button > div,
.hf-member-google-button iframe {
  width: 100% !important;
  height: 40px !important;
  max-width: 100% !important;
}

.hf-member-google-loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3c4043;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.hf-member-google-loading[hidden] {
  display: none !important;
}

.hf-member-google-loading .fa {
  color: #5f6368;
  font-size: 13px;
}

html[data-hf-theme="dark"] .hf-member-google-loading {
  color: var(--hf-color-text);
  background: var(--hf-color-surface);
  border-color: var(--hf-color-border);
}

html[data-hf-theme="dark"] .hf-member-google-loading .fa {
  color: var(--hf-color-muted);
}

.hf-member-auth-privacy-note {
  margin: 10px 0 0;
  color: var(--hf-color-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.hf-member-auth-privacy-note a {
  color: var(--hf-color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hf-member-auth-privacy-note a:hover,
.hf-member-auth-privacy-note a:focus {
  color: var(--hf-color-primary-text);
}

.hf-member-recent-badge {
  position: absolute;
  top: 50%;
  right: 13px;
  z-index: 2;
  padding: 4px 6px;
  color: #4a3f00;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.hf-member-recent-badge--google {
  color: var(--hf-color-primary-text);
  background: var(--hf-color-surface-soft);
}

.hf-member-profile-note {
  margin: 6px 0 24px 1px;
  color: var(--hf-color-muted);
  opacity: 0.95;
  font-size: 10px;
  line-height: 1.55;
  text-align: left;
}

.hf-member-login-confirmation > p {
  margin-top: 14px;
  color: var(--hf-color-text);
  font-size: 13px;
  line-height: 1.55;
}

.hf-member-login-confirmation > p strong {
  color: var(--hf-color-text-strong);
}

.hf-member-confirmation-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  margin-top: 28px;
}

.hf-member-confirmation-actions .hf-member-primary-button {
  margin-top: 0;
}

.hf-member-secondary-button {
  color: var(--hf-color-text);
  background: var(--hf-color-surface-soft);
  border: 1px solid var(--hf-color-line);
}

.hf-member-secondary-button:hover,
.hf-member-secondary-button:focus {
  color: var(--hf-color-text-strong);
  background: var(--hf-color-surface-hover);
  outline: none;
}

.hf-member-signup-provider {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 16px;
  padding: 10px 13px;
  color: var(--hf-color-text);
  background: var(--hf-color-surface-soft);
  border: 1px solid var(--hf-color-line);
  border-radius: 11px;
  box-sizing: border-box;
}

.hf-member-signup-provider-copy {
  min-width: 0;
  display: block;
  text-align: left;
}

.hf-member-signup-provider-copy strong {
  display: block;
  color: var(--hf-color-text-strong);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.hf-member-signup-provider-copy > span {
  display: block;
  margin-top: 3px;
  color: var(--hf-color-muted);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-member-signup-provider-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hf-color-success, #25855a);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.hf-member-signup-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hf-member-signup-form legend {
  width: auto;
  margin: 0 0 10px;
  padding: 0;
  color: var(--hf-color-text-strong);
  border: 0;
  font-size: 15px;
  font-weight: 800;
}

.hf-member-field-label {
  display: block;
  margin: 13px 0 7px;
  color: var(--hf-color-text);
  font-size: 12px;
  font-weight: 800;
}

.hf-member-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.hf-member-signup-form {
  margin: 8px 0 0;
  text-align: left;
}

.hf-member-signup-form select,
.hf-member-signup-form input[type="tel"],
.hf-member-signup-form input[name="otp"] {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  color: var(--hf-color-text-strong);
  background: var(--hf-color-surface);
  border: 1px solid var(--hf-color-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.hf-member-select-wrap {
  position: relative;
  display: block;
}

.hf-member-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--hf-color-muted);
  border-bottom: 1.5px solid var(--hf-color-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.hf-member-signup-form select {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
}

.hf-member-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 24%);
  gap: 8px;
}

.hf-member-phone-row .hf-member-send-otp-button {
  min-height: 44px;
  margin-top: 0;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.hf-member-signup-form select:focus,
.hf-member-signup-form input:focus {
  border-color: var(--hf-color-primary);
  box-shadow: 0 0 0 3px var(--hf-color-primary-soft);
  outline: none;
}

.hf-member-primary-button {
  margin-top: 14px;
  color: #ffffff;
  background: var(--hf-color-primary);
}

.hf-member-primary-button:hover,
.hf-member-primary-button:focus {
  color: #ffffff;
  background: var(--hf-color-primary-hover);
  outline: none;
}

.hf-member-otp-fields {
  margin-top: 16px;
}

.hf-member-otp-input-wrap {
  position: relative;
}

.hf-member-signup-form .hf-member-otp-input-wrap input {
  padding-right: 58px;
}

.hf-member-otp-timer {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--hf-color-primary-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.hf-member-otp-timer.is-expired {
  color: var(--hf-color-danger, #d74242);
}

.hf-member-signup-submit {
  margin-top: 14px;
}

.hf-member-signup-submit[hidden] {
  display: none !important;
}

.hf-member-auth-status {
  min-height: 19px;
  margin: 6px 0 0;
  color: var(--hf-color-danger, #d74242);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.hf-member-auth-status.is-success {
  color: var(--hf-color-success, #25855a);
}

.hf-member-auth-status-spinner {
  margin-right: 6px;
  font-size: 11px;
}

.hf-member-auth-success {
  padding: 18px 0 4px;
  text-align: center;
}

.hf-member-auth-success > .fa {
  display: block;
  margin-bottom: 12px;
  color: var(--hf-color-primary);
  font-size: 42px;
}

.hf-member-auth-success strong {
  display: block;
  color: var(--hf-color-text-strong);
  font-size: 20px;
}

.hf-member-auth-success p {
  margin: 8px 0 20px;
  color: var(--hf-color-muted);
  font-size: 13px;
}
