/* 리셋 & 기본 */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;font-family: Pretendard;letter-spacing: -0.325px;}


/* 좌/우 2분할 */
.login-wrap{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}

/* 좌측 배경 */
.bg-panel{position:relative;min-height:100vh;background:#d9d9d9}
.bg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}


.form-panel{
  display:flex;align-items:center;justify-content:center;
  padding:60px 24px;
}

/* 카드: 더 얇고 단정하게 */
.login-card{
  width:496px;              
  max-width:90%;
  background:#fff;
  box-shadow: 0px 0px 30px 0px #d4d6dd85;
  
}

/* 상단 버전 텍스트: 작고 옅게 */
.product-ver{
  font-weight:400;
  text-align:center;
  font-size:16px;
  color:#505050;
  margin:20px 32px;
}

/* 타이틀: 아이콘 + 텍스트(간격 축소) */
.title-row{
  display:flex;align-items:center;justify-content:center;gap:16px;
  margin-bottom:60px;            
}

.mainTitle{display:flex;align-items:center;justify-content:center; padding:32px 0;}
.title-icon{width:60px;height:60px;display:block}
.title-text{font-size:24px;font-weight:500;letter-spacing:-.2px;color:#000000}

.fields{
	margin:40px;
}

/* 입력: 배경 제거, 밑줄만 */
.fields,
.fields form {
  display: flex;
  flex-direction: column;
}
.line-input{
	color:#767676;
  width:100%;
  padding:16px 2px;
  border:none;outline:none;background:transparent;
  border-bottom:1px solid #DBDBDB;
  font-size:16px;
}
.line-input::placeholder{color:#9aa0a6}
.line-input:focus{border-bottom-color:#21a5bd}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 32px; 
  margin-bottom: 16px; 
}


.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.password-wrapper .line-input {
  width: 100%;
  padding-right: 45px; /* 아이콘 공간 확보 */
}

/* 비밀번호 보기/숨기기 버튼 */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toggle-password:hover img {
  opacity: 1;
}

.submitgroup{
	margin-top:40px;
}

/* 버튼: 플랫 보라, 그림자 약하게 */
.primary-btn{
  margin:0;
  width:100%;
  max-width:416px;
  height:56px;
  border:0;
  background: linear-gradient(302deg, #6584c1, #9abbdc);
  color:#fff;font-weight:600;font-size:16px;
  cursor:pointer;transition:filter .15s ease, transform .02s ease;
}
/*.primary-btn:hover{filter:brightness(.97)}
.primary-btn:active{transform:translateY(1px)}*/

/* 로그인 상태 유지 체크박스 */
.keep-login-checkbox {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #dbdbdb;
  border-radius: 50%; 
  cursor: pointer;
  transition: all 0.2s;
  background-color: #fff;
}

/* 체크된 상태 - 보라색으로 채우기 */
.keep-login-checkbox:checked {
  background-color: #6955A2;
  border-color: #dbdbdb;
}

.login-state-wrapper {
  display: flex;
  gap: 8px;
  justify-content : space-between;
}
.submigroup{
	margin-top:40px;
}

.findIdPw{
	margin-left :auto;
}

.login-foot{
	margin-top:16px;
}

.joinus,
.findIdPw,
.loginState{
	gap:10px;
	font-weight:400;
	font-size:15px;
	color:#767676;
	margin-bottom:10px;
}


.joinus a,
.findIdPw a{
	font-weight:400;
	font-size:15px;
	color:#767676;
	text-decoration: none;
}



/* 로그인 실패시 에러메시지 */
.error-message {
  color: #ED1C24;
  font-size: 13px;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
  text-align:center;
}

.error-message:empty {
  opacity: 0;
}


/* 회원가입 체크박스 스타일 */
.assent-line-input[type="checkbox"] {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.6px solid #767676;
  border-radius: 4px; /* 둥근 사각형 */
  cursor: pointer;
  transition: all 0.2s;
  background-color: #fff;
  flex-shrink: 0;
  position: relative;
}

/* 체크된 상태 - 보라색 배경 */
.assent-line-input[type="checkbox"]:checked {
  background-color: #6955A2;
  border-color: #6955A2;
}

/* 체크마크 */
.assent-line-input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 2,3번째 체크박스 왼쪽 마진 */
#tnc,
#usePi {
  margin-left: 4px;
}

/* label 정렬 */
.assent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assent a {
  margin-left: auto;
  color: #767676;
  font-size: 16px;
  text-decoration: none;
}

/*이메일 인증버튼*/
.email-wrapper {
  display: flex;
  flex-direction: row ;
  align-items: flex-end;
  width: 100%;
  border-bottom: 1px solid #DBDBDB; 
}

/*div는 focus로 못받음*/
.email-wrapper:focus-within{border-bottom-color:#6955A2}

.email-wrapper .line-input {
  flex: 1;
  margin-bottom: 0 ;
  border-bottom: none; 
}

/*이메일 인증 버튼*/
.email-wrapper .confirm {
  flex-shrink: 0;
  height: 34px; 
  padding: 5px 26px;
  margin-bottom:11px;
  background-color: #ADADAD;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
}
/* 비활성화 상태 */
.email-wrapper .confirm:disabled {
  background-color: #ADADAD;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 활성화 상태 */
.email-wrapper .confirm:not(:disabled) {
  background-color: #6955A2;
  cursor: pointer;
}

.email-wrapper .confirm:not(:disabled):hover {
  background-color: #5a4689;
}

.register-form .input-group {
    margin-bottom:32px;
}
.register-form .error-message,
.submitgroup .error-message {
    text-align: left;
}

/*아이디 비밀번호 찾기 css*/
/* 탭 컨테이너 */
.page-subtitle {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 20px;
}

.fields .findLogin{
	font-size:18px;
	font-weight:400;
	text-align:center;
	margin:130px 0;
}
.returnPage{
	
}

/* 탭 버튼 기본 스타일 */
.find-id,
.find-pw {
  width: 208px;
  height: 60px;
  border-bottom: 1px solid #DBDBDB;
  background: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #767676;
  transition: all 0.2s;
}

/* 활성 탭 스타일 */
.find-id.active,
.find-pw.active {
  border-bottom: 1px solid #000000;
  color: #191919;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* 오른쪽 탭의 왼쪽 border 제거 (겹침 방지) */
.find-pw {
  border-left: none;
}

.find-info{
	font-size:15px;
	color:#191919;
	font-weight:400;
	text-align:center;
	margin: 32px 0;
	
}

/* title 숨김 시 margin 조정 */
#mainTitle {
    transition: all 0.3s ease;
}

#mainTitle[style*="display: none"] + .page-subtitle {
    margin-top: 40px; /* title이 없을 때 상단 여백 조정 */
}

/* 비밀번호 안내문 */
.hint-text {
	margin:6px 0;
  font-size: 13px;
  color: #767676;
  text-align: left;
}

.pwd-changed-page .password-wrapper {
  margin-bottom: 0;
}.pwd-changed-page .toggle-password {
  top: 16px;
  transform: none;
}

/* 반응형 */
@media (max-width:980px){
  .login-wrap{grid-template-columns:1fr}
  .bg-panel{min-height:42vh}
  .login-card{margin-top:-38px}
}
@media (max-width:420px){.login-card{padding:24px 18px 22px;width:94%}}

/* (37 WP-L2) 새 로그인 확인 팝업 */
.login-confirm-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center}
.login-confirm-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.login-confirm-dialog{
  position:relative;width:360px;max-width:90vw;background:#fff;border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);padding:28px 28px 22px;text-align:center;
}
.login-confirm-title{font-size:17px;font-weight:600;color:#383351;margin-bottom:12px}
.login-confirm-desc{font-size:14px;line-height:1.6;color:#505050;margin-bottom:22px}
.login-confirm-btns{display:flex;gap:10px;justify-content:center}
.login-confirm-btn{
  flex:1;height:44px;border-radius:6px;font-size:15px;font-weight:600;cursor:pointer;
  border:1px solid #6584c1;
}
.login-confirm-btn.primary{background:linear-gradient(302deg,#6584c1,#9abbdc);color:#fff}
.login-confirm-btn.secondary{background:#fff;color:#6584c1}
.login-confirm-btn:disabled{opacity:.6;cursor:default}
