.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0c377e;
  --bs-btn-border-color: #0c377e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a58ca;
  --bs-btn-active-border-color: #0a53be;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #0c377e;
  --bs-btn-disabled-border-color: #0c377e;
}


/* 기본 스타일 제거 */
.custom-checkbox input,
.custom-radio input {
  appearance: none;
  position: absolute;
  opacity: 0;
}

/* 체크박스 백그라운드 + 아이콘 */
.checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #dae2e6;
  border-radius: 4px;
  vertical-align: text-bottom;
  margin-right: 8px;
  background-color: #fff;
  transition: background-color .2s;
}

.custom-checkbox input:checked + .checkmark {
  /*background-color: #28a745;*/
  /* 체크 아이콘 추가 */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23888" d="M6 10l-2-2 1-1 1 1 3-3 1 1-4 4z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

/* 라디오백그라운드 */
.radiomark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #dae2e6;
  border-radius: 50%;
  vertical-align: text-bottom;
  margin-right: 8px;
  transition: background-color .2s, border-color .2s;
}

.custom-radio input:checked + .radiomark {
  /*
border-color: #007bff;
background-color: #007bff;

   */
}

.custom-radio input:checked + .radiomark::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23888" d="M6 10l-2-2 1-1 1 1 3-3 1 1-4 4z"/></svg>');
  background-position: -3px -4px;
  border-radius: 50%;
  margin: 4px;
}


/* 로그인, 회원가입 주위배경 처리 */
/* 로그인/회원가입 Swal 전용 배경 */
.swal-login-backdrop.swal2-backdrop-show {
  /* 배경 어둡게 */
  background: rgba(0, 0, 0, 0.6) !important;

  /* 뒷배경 블러 처리 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* 사파리 대응 */
}


/* 회원가입 */
/* 전체 박스 */
.signup-modal {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

/* 상단 헤더 탭 영역 */
.signup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signup-tabs {
  display: inline-flex;
  border-radius: 999px;
  background: #ffffff;
  gap: 15px;
}

.signup-tab {
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  color: #dfdfdf;
}

.signup-tab.active {
  color: #1a66ea
}

/* 닫기 버튼 */
.signup-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

.signup-body {
  /*padding: 0 18px;*/
}

.signup-desc {
  font-size: 13px;
  color: #1a66ea;
  text-align: left;
  margin-bottom: 30px;
}

/* 필드 공통 */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-align: left;
}

.required {
  color: #ff4b4b;
  margin-left: 2px;
}

/* input + 버튼 나란히 */
.field-row {
  display: flex;
  gap: 8px;
}

.field-input {
  flex: 1 1 auto;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  padding: 9px 11px;
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.field-input::placeholder {
  color: #bdbdbd;
}

.field-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.15);
}

/* 버튼 스타일 */
.btn-outline,
.btn-primary {
  border-radius: 4px;
  border: none;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline {
  background: #1a66ea;
  border-radius: 4px;
  color: #fff;
}

.btn-primary {
  width: 100%;
  padding: 11px 14px;
  background: #007bff;
  color: #ffffff;
  margin-top: 6px;
}


/* 도움말 / 에러 메시지 */
.field-help {
  font-size: 11px;
  margin: 0;
  text-align: left;
}

.field-help.error {
  color: #e53935;
}

/* 반응형: 화면이 아주 좁을 때(버튼이 너무 눌리면) 버튼 줄 바꿈 허용 */
@media (max-width: 360px) {
  .field-row {
    flex-direction: column;
  }

  .btn-outline {
    width: 100%;
    text-align: center;
  }
}



.login-wrapper {
  width: 100%;
  background: #ffffff;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}

/* 헤더 */
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.login-header-title {
  font-size: 20px;
  font-weight: 700;
}

.login-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.login-subtext {
  font-size: 13px;
  text-align: left;
  color: #6b7280;
  margin-bottom: 18px;
}

/* 폼 */
.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.login-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.login-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9ca3af;
  pointer-events: none; /* 기능 없이 표시용 */
}

/* 로그인 상태 유지 */
.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
  margin-top: 4px;
}

.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* 로그인 버튼 */
.login-btn-main {
  margin-top: 14px;
  width: 100%;
  padding: 11px 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.login-btn-main:hover {
  background: #1d4ed8;
}

/* 링크 라인 */
.login-link-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
}

.login-link-row a {
  text-decoration: none;
  color: #6b7280;
}

.login-link-row a:hover {
  text-decoration: underline;
}

/* 구분선 */
.login-divider-wrap {
  margin: 18px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* SNS 버튼 */
.sns-btn {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

.sns-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sns-kakao {
  background: #fee500;
}

.sns-naver {
  background: #03c75a;
}

.sns-google {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.sns-label {
  flex: 1;
  text-align: center;
  margin-right: 24px; /* 아이콘 공간만큼 보정 */
}

/* 반응형 */
@media (max-width: 480px) {

  .login-wrapper {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}
