* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: "GmarketSansMedium", sans-serif;
}

@font-face {
  font-family: "GmarketSansMedium";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  background: #f5f5f5;
}

/* ===================== Layout ===================== */
.lp-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===================== Left Panel ===================== */
.lp-left {
  flex: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  padding: 60px 8% 60px 40px;
  overflow: hidden;
  background: #f5f5f5;
}

.lp-left-illust {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
}

.lp-left-illust img {
  width: 100%;
  height: auto;
}

/* ===================== Right Panel ===================== */
.lp-right {
  flex: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  background: #f5f5f5;
}

/* ===================== Card ===================== */
.lp-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

.lp-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 24px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 28px;
}

.lp-card-title-logo {
  height: 1.5em;
  width: auto;
  margin-right: 4px;
}

/* ===================== Input Group ===================== */
.lp-input-group {
  position: relative;
  margin-bottom: 14px;
}

.lp-input-group .input100 {
  width: 100%;
  height: 52px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-family: "GmarketSansMedium", sans-serif;
  color: #222222;
  background: #ffffff;
  transition: border-color 0.2s;
  outline: none;
}

.lp-input-group .input100:focus {
  border-color: #27b5c9;
  outline: none;
}

.lp-input-group .input100::placeholder {
  color: #aaaaaa;
  font-size: 14px;
}

#userPs {
  padding-right: 46px !important;
}

/* 비밀번호 토글 버튼 */
.lp-toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #aaaaaa;
  display: flex;
  align-items: center;
  font-size: 16px;
  outline: none;
  line-height: 1;
}

.lp-toggle-pw.active {
  color: #27b5c9;
}

/* ===================== Form Options ===================== */
.lp-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-remember {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.lp-remember .form-check-input {
  cursor: pointer;
  margin-left: 0;
  margin-top: 0;
  margin-right: 4px;
}

.lp-remember .form-check-input:checked {
  background-color: #27b5c9;
  border-color: #27b5c9;
}

.lp-remember .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(39, 181, 201, 0.25);
  border-color: #27b5c9;
}

.lp-remember .form-check-label {
  font-size: 13px;
  color: #555555;
  cursor: pointer;
  margin: 0;
  padding-left: 4px;
}

#changePasswordBtn a {
  font-size: 13px;
  color: #888888;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

#changePasswordBtn a:hover {
  color: #27b5c9;
}

/* ===================== Login Button ===================== */
.login100-form-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background: #27b5c9;
  font-size: 16px;
  font-family: "GmarketSansMedium", sans-serif;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.login100-form-btn:hover {
  background: #1fa3b6;
}

/* 로그인 요청 중 (login.js preHandleOnLogin) */
.login100-form-btn.is-loading,
.login100-form-btn.is-loading:hover {
  background: #333333;
}

/* ===================== Cancel Button (Modal) ===================== */
.login100-cancel-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  width: 10%;
  height: 36px;
  border-radius: 8px;
  background: #dc3545;
  font-size: 12px;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.login100-cancel-btn:hover {
  background: #910613;
}

/* ===================== JS-Compatible Classes ===================== */
.validate-input {
  position: relative;
}

.alert-validate::before {
  content: attr(data-validate);
  position: absolute;
  z-index: 100;
  max-width: 70%;
  background-color: #ffffff;
  border: 1px solid #c80000;
  border-radius: 4px;
  padding: 4px 25px 4px 10px;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  pointer-events: none;
  color: #c80000;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}

.alert-validate::after {
  content: "\e902";
  font-family: "feather" !important;
  display: block;
  position: absolute;
  z-index: 110;
  color: #c80000;
  font-size: 16px;
  top: 50%;
  transform: translateY(-50%);
  right: 18px;
}

.alert-validate:hover::before {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 992px) {
  .alert-validate::before {
    visibility: visible;
    opacity: 1;
  }
}

/* ===================== Alert Message (ott-sent.html) ===================== */
/* ott-sent.html은 이 파일을 함께 쓰며 Bootstrap alert(#loginAlert)를 우측 상단에 고정해 표시한다. */
#loginAlert {
  position: fixed;
  width: 440px;
  top: 24px;
  right: 24px;
  z-index: 999999;
}

/* ===================== Alert Message (gritter) ===================== */
/* main 화면 알림과 같은 모양 — css/_core/main/main.custom.css [ 0512 ][ PLUGINS :: GRITTER ] 기준.
   login은 main 번들을 쓰지 않으므로 필요한 규칙만 옮겨 둔다. 너비 값을 바꾸면 양쪽을 함께 수정한다. */
:root {
  --gritter-min-width: 240px;
  --gritter-max-width: 480px;
}

#gritter-notice-wrapper {
  top: 24px;
  right: 24px;
  width: auto;
  max-width: min(var(--gritter-max-width), calc(100vw - 48px));
}

.gritter-item-wrapper {
  width: fit-content;
  min-width: var(--gritter-min-width);
  margin-left: auto;
  background: #2b2f36;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gritter-top,
.gritter-item,
.gritter-bottom {
  background: none;
}

.gritter-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 2px 40px 8px 11px; /* 오른쪽: 닫기(X) 버튼 자리 */
  color: #eee;
  font-size: 13px;
}

.gritter-title {
  font-size: 14px;
}

.gritter-item p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* float 해제용 clear div는 flex에서 불필요하고 gap만 추가하므로 숨김 */
.gritter-item > div[style*="clear"] {
  display: none;
}

.gritter-image {
  flex-shrink: 0;
  float: none;
}

.gritter-with-image,
.gritter-without-image {
  width: auto;
  min-width: 0;
  float: none;
}

.gritter-close {
  left: auto;
  right: 8px;
  background: url(/images/gritter/gritter-0d28eb4cdd458ada4abc38b596ad281c.png) no-repeat left top;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .lp-left {
    display: none;
  }

  .lp-right {
    flex: 1;
    padding: 24px 16px;
  }

  .lp-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .lp-card {
    padding: 24px 16px;
  }

  .lp-card-title {
    font-size: 20px;
  }
}
