/* auth.css — 로그인/회원가입 공통 */
.auth-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 24px 16px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 375px;
  padding: 40px 24px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  gap: 8px;
}
.auth-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.auth-logo-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.auth-field {
  margin-bottom: 12px;
}
.auth-field input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #d9d9d9;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  color: #1a1a1a;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.auth-field input:focus { border-color: #E05B2A; }
.auth-field input::placeholder { color: #b0b0b0; }
.auth-field input.is-error { border-color: #E05B2A; }

.auth-find-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 20px;
  font-size: 13px;
  color: #888;
}
.auth-find-links a { color: #888; text-decoration: none; }
.auth-find-links span { color: #d9d9d9; }

.btn-auth-primary {
  display: block;
  width: 100%;
  height: 52px;
  background: #E05B2A;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.btn-auth-primary:hover { background: #c94e22; }
.btn-auth-primary:disabled { background: #d9d9d9; cursor: not-allowed; }

.btn-auth-outline {
  display: block;
  width: 100%;
  height: 52px;
  background: #fff;
  color: #E05B2A;
  border: 1.5px solid #E05B2A;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: center;
  line-height: 49px;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-auth-outline:hover { background: #fff5f2; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #b0b0b0;
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: #FEE500;
  color: #191600;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
}
.btn-kakao:hover { background: #f0d800; }

.auth-simple-login {
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* 에러 모달 */
.auth-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.auth-modal-backdrop.is-open { display: flex; }
.auth-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 20px;
  width: 280px;
  text-align: center;
}
.auth-modal-msg {
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 20px;
  white-space: pre-line;
}
.btn-modal-confirm {
  width: 100%;
  height: 44px;
  background: #E05B2A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 회원가입 */
.auth-form-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.auth-back-btn {
  background: none;
  border: none;
  padding: 4px 8px 4px 0;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 22px;
  line-height: 1;
}
.auth-form-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.auth-label .required { color: #E05B2A; margin-left: 2px; }
.auth-field-error {
  font-size: 12px;
  color: #E05B2A;
  margin-top: 4px;
}

/* 약관 */
.consent-wrap {
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.consent-all {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #f9f9f9;
  border-bottom: 1px solid #e8e8e8;
  cursor: pointer;
}
.consent-all-text { flex: 1; }
.consent-all-title { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.consent-all-desc { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.4; }
.consent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.consent-item:last-child { border-bottom: none; }
.consent-item-label { flex: 1; font-size: 14px; color: #333; }
.consent-item-arrow { color: #b0b0b0; font-size: 16px; }

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 1.5px solid #d9d9d9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  background: #fff;
}
.custom-checkbox.checked {
  background: #E05B2A;
  border-color: #E05B2A;
}
.custom-checkbox.checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
input[type="checkbox"].sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
