/* Auth pages — login & join (HiSelf new UI) */

header.site-header {
  display: none;
}

.auth-page {
  min-height: calc(100vh - 120px);
  padding: 48px 0 64px;
  background: linear-gradient(115deg, #eaf4ff 0%, #f7fbff 48%, #eef6ff 100%);
}

.auth-in {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(100%, 440px);
  padding: 40px 36px 36px;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.07);
}

.auth-card--wide {
  width: min(100%, 520px);
}

.auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

.auth-logo strong {
  display: block;
  font-size: 32px;
  color: var(--color-primary);
  letter-spacing: -1px;
  line-height: 1.1;
}

.auth-logo strong span {
  color: var(--color-logo-dark);
}

.auth-logo p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.auth-head h1,
.auth-step-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.auth-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-body);
}

.auth-page .field-input {
  flex: none;
  width: 100%;
  height: 48px;
  min-height: 48px;
}

.auth-submit {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin-top: 4px;
  font-size: 15px;
}

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 20px;
  height: 20px;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--color-border);
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: #fff;
}

.auth-sns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-sns .auth-divider {
  margin: 8px 0;
}

.auth-sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border-input);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-body);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.auth-sns-btn:hover {
  background: #f9fafb;
  border-color: #c5d0e5;
}

.auth-sns-btn--naver {
  background: #03c75a;
  border-color: #03c75a;
  color: #fff;
}

.auth-sns-btn--naver:hover {
  background: #02b351;
  border-color: #02b351;
}

.auth-sns-btn--kakao {
  background: #fee500;
  border-color: #fee500;
  color: #191600;
}

.auth-sns-btn--kakao:hover {
  background: #f5d900;
  border-color: #f5d900;
}

.auth-sns-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.auth-sns-btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.auth-footer a {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Join steps */
.auth-step {
  display: none;
}

.auth-step.is-active {
  display: block;
}

.auth-step .auth-step-title {
  text-align: center;
  margin-bottom: 24px;
}

.auth-agree-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f6f9ff;
  border: 1px solid var(--color-border);
}

.auth-agree-all label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}

.auth-agree-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-agree-item p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.auth-agree-item label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-body);
  cursor: pointer;
}

.auth-agree-item label span {
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 4px;
}

.auth-agree-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border-input);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: transform 0.2s;
}

.auth-agree-item.on .auth-agree-toggle {
  transform: rotate(180deg);
}

.auth-agree-body {
  display: none;
  margin-top: 10px;
  padding: 14px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  white-space: pre-line;
  word-break: keep-all;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.auth-agree-item.on .auth-agree-body {
  display: block;
}

.auth-agree-list input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.auth-form-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-form-grid > li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form-grid label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-body);
}

.auth-form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.auth-form-row .field-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 48px;
  min-height: 48px;
}

.auth-form-row .btn-secondary {
  flex-shrink: 0;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--color-text-body);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.auth-form-row .btn-secondary:hover:not(:disabled) {
  background: var(--color-text);
}

.auth-form-row .btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.auth-complete-msg {
  text-align: center;
  padding: 24px 0;
}

.auth-complete-msg p {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.auth-complete-msg p:first-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .auth-page {
    padding: 32px 0 48px;
    min-height: auto;
  }

  .auth-card {
    padding: 32px 24px 28px;
  }

  .auth-logo strong {
    font-size: 28px;
  }
}
