@import url("../fonts/font.css");
@font-face {
  font-family: "PayboocFont";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/paybooc-Light.woff")
    format("woff");
  font-weight: 300;
  font-display: swap;
}
html,
body {
  font-family: "PayboocFont", "Pretendard", sans-serif;
  font-size: 14px;
}

:root {
  --bs-theme-1: 126, 175, 0;
  --bs-theme-2: 0, 142, 107;
  --bs-theme-3: 0, 120, 122;
  --bs-theme-4: 47, 72, 88;
  --bs-opcity-00: 0;
  --bs-opcity-005: 0.05;
  --bs-opcity-02: 0.2;
  --bs-opcity-04: 0.4;
  --bs-opcity-06: 0.6;
  --bs-opcity-08: 0.8;
  --bs-opcity-10: 1;
}
body {
  background-color: #fff;
}

/* 로그인 시작 */
.login-area {
  max-width: 480px;
  padding: 0 40px;
  margin: 0 auto;
  margin-top: 108px;
  margin-bottom: 80px;
}
.login-area .logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 48px;
}
.login-area .logo img {
  width: 200px;
}
.login-area .section {
  border: solid 1px #e1e3e5;
  border-radius: 8px;
  padding: 24px;
}

.login-box,
.form-floating {
  position: relative;
  width: 100%;
  height: 59px;
  margin-top: -1px;
  box-shadow: inset 0 0 0 1px #c5ccd2;
  box-sizing: border-box;
  overflow: hidden;
}
.login-box:nth-child(1),
.form-floating {
  border-radius: 12px 12px 0 0;
  height: 60px;
  margin-top: 0px;
}
.login-box:nth-last-child(1),
.form-floating {
  border-radius: 0 0 12px 12px;
}
.login-box.one-login-box,
.form-floating.one-login-box {
  border-radius: 12px !important;
}
.login-box input {
  width: calc(100% - 20px);
  height: 40px;
  margin: 16px 10px 2px 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  outline: none;
}
.login-box label {
  position: absolute;
  /* top: 10px; */
  left: 10px;
  /* line-height: 40px; */
  /* font-size: 16px; */
  font-weight: 500;
  color: #737373;
  color: rgba(0, 0, 0, 0.6);
  cursor: text;
  transition: 0.3s ease;
  pointer-events: none;

  line-height: 18px;
  font-size: 12px;
  top: 8px;
}
.login-box input:focus ~ label {
  top: 4px;
  font-size: 12px;
  color: #ed2553;
  line-height: 18px;
}
.login-box:has(input:focus) {
  box-shadow: inset 0 0 0 2px var(--bs-theme);
  z-index: 1;
}
.login-box input:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 12px;
  line-height: 18px;
}
.login-box input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.login-checkBox {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 16px;
}
.login-checkBox input[type="checkbox"] {
  position: relative;
  margin-left: 3px;
  margin-right: 12px;
  transform: translateY(2px);
}
.login-checkBox input[type="checkbox"]::before {
  position: absolute;
  color: #a5adb8;
  content: "\2713";
  width: 20px;
  height: 20px;
  top: calc(50% - 9px);
  left: calc(50% - 10px);
  background-color: #fff;
  border: solid 2px #a5adb8;
  border-radius: 40px;
  cursor: pointer;
  padding: 1px 1px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-checkBox input[type="checkbox"]:checked::before {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  content: "\2713";
  border: none;
  background-color: var(--bs-theme);
}

.button-cont {
  display: flex;
  align-items: center;
  gap: 8px;
}
.button-cont > a,
.button-cont > button {
  flex: 1;
}
.themeBtn {
  border: solid 1px var(--bs-theme);
  background-color: var(--bs-theme);
  color: #fff;
  flex: 1;
  width: 100%;
  transition: all 0.2s ease;
  text-align: center;
  padding: 12px;
  font-weight: 900;

  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.themeBtn-border {
  border: solid 1px var(--bs-theme);
  background-color: #fff;
  color: var(--bs-theme);
  flex: 1;
  width: 100%;
  transition: all 0.2s ease;
  padding: 12px;
  font-weight: 900;

  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.themeBtn:hover,
.themeBtn-border:hover {
  background-color: rgba(var(--bs-theme-rgb), 0.5);
  color: #fff;
  transition: all 0.2s ease;
}
button[disabled].themeBtn:hover {
  cursor: inherit;
  background-color: #eee;
  color: #878c9a;
}

.login-etcBox {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.login-etcBox a {
  font-size: 1rem;
  color: #888;
  text-decoration: none;
}
@media (max-width: 480px) {
  .login-area {
    padding: 0 20px;
    margin: 40px 0;
  }
  .login-area .section {
    border: none;
    padding: 0;
  }
  .login-etcBox a {
    font-size: 14px;
  }
}
/* 로그인 끝 */

.parsley-errors-list {
  padding-left: 0;
  list-style: none;
}

/* 회원가입 */
.card-option {
  position: relative;
  width: 100%;
  height: auto;
  font-size: 15px;
  color: #666;
  font-weight: 500;
  display: table;
  box-sizing: border-box;
  padding: 3px 3px;
  vertical-align: middle;
}
.card-option .option-section {
  position: relative;
  display: inline-block;
  margin-right: 14px;
  font-size: 13px;
  padding: 4px 0;
  font-weight: 500;
  min-height: 26px;
  vertical-align: middle;
}

/* 약관 */
.allCheck .essential {
  margin-right: 4px;
}
body:has(.terms-of-use) .modal .custom-scroll {
  height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

/* 등록 */
.search-customBtn {
  width: 80px;
  padding: 0;
  height: 59px;
  flex: auto;
}
.search-customBtn:hover,
.search-customBtn:focus,
.search-customBtn:active {
  z-index: 1;
}

/* 모달 */
.modal-dialog {
  /* max-width: 480px !important; */
  width: 100% !important;
  height: 100%;
  margin: 0 auto !important;
}
.modal-dialog-end {
  display: flex;
  align-items: center;
}
#checkIframe.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, 100dvh);
  transform: translate(0, calc(var(--vh, 1vh) * 100));
}
#checkIframe.modal.show .modal-dialog {
  transform: none;
}
#checkIframe .modal-content {
  max-height: calc(100dvh - 64px);
  max-height: calc((var(--vh, 1vh) * 100) - 64px);
  height: auto;
  overflow: visible;
  border-radius: 4px 4px 0 0;
  /* margin: 20px; */
}
.modal-content {
  /* margin: 0 20px; */
}

#checkIframe .modal-footer {
  padding: 8px 12px;
  border: none;
  justify-content: flex-start;
}
#checkIframe .modal-footer > * {
  margin: 0;
}
.select-btnBox {
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.select-btnBox.w-half > a,
.select-btnBox.w-half > button {
  flex: 1;
}

/* 버튼 */
.shopBtn {
  border: solid 1px var(--bs-theme);
  background-color: var(--bs-theme);
  color: #fff;
  flex: 1;
  width: 100%;
  transition: all 0.2s ease;
  text-align: center;
  padding: 12px;
  font-weight: 900;

  display: flex;
  justify-content: center;
  align-items: center;
}
.shopBtn-border {
  border: solid 1px var(--bs-theme);
  background-color: #fff;
  color: var(--bs-theme);
  flex: 1;
  width: 100%;
  transition: all 0.2s ease;
  padding: 12px;
  font-weight: 900;

  display: flex;
  justify-content: center;
  align-items: center;
}
.shopBtn:hover,
.shopBtn-border:hover {
  background-color: rgba(var(--bs-theme-rgb), 0.5);
  color: #fff;
  transition: all 0.2s ease;
}

/* 가입 완료 */
.login-comp-box {
  margin-bottom: 24px;
  padding: 8px;
  background-color: #f5f5f5;
  text-align: center;
}

.login-comp-box p {
  margin: 0;
  font-size: 16px;
}
.login-comp-box .tit {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
