/* 로그인 모달 */
#loginModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 20, 35, .65);
  box-sizing: border-box;
}

#loginModal.show {
  display: flex;
}

/* 로그인 카드 */
.login-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  padding: 38px 34px 25px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  box-sizing: border-box;
  animation: loginShow .25s ease;
}

@keyframes loginShow {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 닫기 */
.login-close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: 0;
  background: none;
  font-size: 30px;
  color: #999;
  cursor: pointer;
}

/* 상단 */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #27344c;
}

.login-header p {
  margin: 12px 0 0;
  font-size: 14px;
  color: #888;
}

/* 입력창 */
.login-input-wrap {
  position: relative;
  height: 55px;
  margin-bottom: 12px;
  border: 1px solid #e0e3e9;
  border-radius: 9px;
  transition: .2s;
  box-sizing: border-box;
}

.login-input-wrap:focus-within {
  border-color: #315fc5;
  box-shadow: 0 0 0 3px rgba(49,95,197,.08);
}

.login-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
}

.login-input-wrap input::placeholder {
  color: #aaa;
}

.login-input-wrap:has(.password-toggle) input {
  padding-right: 55px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}

/* 로그인 옵션 */
.login-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0 20px;
  font-size: 12px;
}

.login-option label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  cursor: pointer;
}

.login-option input {
  accent-color: #315fc5;
}

.login-find {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-find a {
  color: #666;
  text-decoration: none;
}

.login-find span {
  color: #ddd;
}

/* 로그인 버튼 */
.login-submit {
  width: 100%;
  height: 55px;
  border: 0;
  border-radius: 9px;
  background: #315fc5;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.login-submit:hover {
  background: #254da8;
}

/* 간편 로그인 */
.social-area {
  margin-top: 27px;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #999;
  font-size: 12px;
}

.social-divider:before,
.social-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7e7e7;
}

.social-buttons {
  display: flex;
  gap: 9px;
}

.social-btn {
  flex: 1;
  height: 47px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
}

.social-icon {
  font-size: 17px;
  font-weight: 800;
}

.social-naver {
  background: #03c75a;
  color: #fff;
}

.social-kakao {
  background: #fee500;
  color: #191919;
}

.social-google {
  background: #fff;
  color: #444;
  border: 1px solid #ddd;
}

.social-google .social-icon {
  color: #4285f4;
}

/* 회원가입 */
.login-join {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #888;
}

.login-join a {
  color: #315fc5;
  font-weight: 700;
  text-decoration: none;
}

.login-join b {
  font-size: 18px;
}

/* 하단 */
.login-bottom {
  margin-top: 22px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: #bbb;
}

/* 모바일 */
@media(max-width:480px) {

  .login-card {
    padding: 35px 22px 22px;
    border-radius: 15px;
  }

  .login-logo {
    font-size: 24px;
  }

  .login-option {
    font-size: 11px;
  }

  .social-buttons {
    gap: 6px;
  }

  .social-btn {
    font-size: 12px;
    gap: 4px;
  }

}

.common-modal {
    display:none;
    position:fixed;
    inset:0;
    z-index:99999;
    background:rgba(0,0,0,.5);
    align-items:center;
    justify-content:center;
    padding:20px;
}

.common-modal.show {
    display:flex;
}

.common-modal-box {
    width:100%;
    max-width:360px;
    background:#fff;
    border-radius:16px;
    padding:28px 24px 22px;
    text-align:center;
    box-shadow:0 10px 40px rgba(0,0,0,.2);
}

.common-modal-icon {
    font-size:36px;
    color:#3978d6;
    margin-bottom:12px;
}

.common-modal-box h3 {
    font-size:19px;
    margin:0 0 12px;
}

.common-modal-box p {
    font-size:15px;
    line-height:1.7;
    color:#555;
    white-space:pre-line;
    margin:0 0 24px;
}

.common-modal-buttons {
    display:flex;
    gap:8px;
}

.common-modal-buttons button {
    flex:1;
    height:44px;
    border:0;
    border-radius:8px;
    font-size:15px;
    cursor:pointer;
}

#commonModalCancel {
    background:#eee;
    color:#555;
}

#commonModalOK {
    background:#2868c7;
    color:#fff;
}

#commonModalMessage {
    white-space: pre-line;
    text-align: left;
    line-height: 1.7;
    padding: 10px 5px;
}