@charset "UTF-8";
/*
  로그인 페이지(Login::indexRn) 콘텐츠 영역 전용 스타일
  - Figma "[login]로그인"(PC, node 970:3492) / "[Mo_main] 메인페이지"(모바일, node 1181:382)의
    로그인 폼 컴포넌트 스펙을 그대로 반영한다.
  - GNB/Footer는 header_rn_v / footer_rn_v + loginrn_gnb.css를 공용으로 사용하며, 이 파일은 폼 영역만 담당한다.
  - 모바일 브레이크포인트 : 768px 이하 (loginrn_gnb.css와 동일 기준)
*/

.rnLoginSec {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 100px 20px 120px;
  background-color: #fff;
}

.rnLoginInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 325px;
}

.rnLoginTitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.rnLoginHeading {
  font-size: 24px;
  font-weight: 700;
  color: #040404;
  letter-spacing: -0.48px;
}
.rnLoginDesc {
  font-size: 13px;
  font-weight: 400;
  color: #333842;
  line-height: 1.6;
  letter-spacing: -0.13px;
}

.rnLoginInner form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0;
}

.rnLoginFields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.rnFieldGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.rnFieldBox {
  height: 50px;
  border: 1px solid #99a2b2;
  border-radius: 8px;
  box-sizing: border-box;
}
.rnFieldGroup.isError .rnFieldBox {
  border-color: #fa4d4c;
}

.rnFieldInput {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: none;
  padding: 0 12px 0 14px;
  font-size: 16px;
  color: #1d2025;
  letter-spacing: -0.48px;
  box-sizing: border-box;
}
.rnFieldInput::placeholder {
  color: #7d879b;
}

.rnFieldError {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.rnFieldGroup.isError .rnFieldError {
  display: flex;
}
.rnFieldErrorIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #fa4d4c;
  color: #fafafa;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.rnFieldErrorIcon::before {
  content: "!";
}
.rnFieldErrorTxt {
  font-size: 12px;
  color: #e83534;
  letter-spacing: -0.12px;
}

.rnLoginExtra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.rnCheckbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1d2025;
  letter-spacing: -0.26px;
  cursor: pointer;
}
.rnCheckbox input[type=checkbox] {
  display: none;
}
.rnCheckboxIcon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("/assets/img/login/icon_checkbox.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
.rnCheckbox input[type=checkbox]:checked + .rnCheckboxIcon {
  background-image: url("/assets/img/login/icon_checkbox_on.svg");
}
.rnFindLinks {
  font-size: 13px;
  color: #1d2025;
  letter-spacing: -0.26px;
}
.rnFindLinks a {
  color: inherit;
}
.rnFindLinks a:hover {
  text-decoration: underline;
}
.rnFindLinks span {
  margin: 0 4px;
  color: #b9bfca;
}

.rnLoginBtns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.rnLoginBtn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background-color: #263a83;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.rnLoginBtn:hover {
  cursor: pointer;
  background-color: #1c2c66;
}
.rnOr {
  font-size: 13px;
  color: #7e7e7e;
  letter-spacing: -0.13px;
}
.rnGoogleBtnWrap {
  position: relative;
  width: 100%;
  height: 46px;
}
.rnGoogleBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  border: 1px solid #b9bfca;
  border-radius: 8px;
  background-color: #fff;
  color: #333842;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}
.rnGoogleBtnWrap:hover .rnGoogleBtn {
  background-color: #f7f8fa;
}
.rnGoogleIcon {
  width: 18px;
  height: 18px;
}

#g_id_onload {
  display: none;
}

/* 구글 공식 렌더링 버튼을 커스텀 버튼 위에 투명하게 겹쳐 실제 클릭(사용자 제스처)이 구글 iframe에 전달되도록 함 - FedCM/One Tap prompt() 오류 회피 */
.rnGoogleRealBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
}

@media (max-width: 768px) {
  .rnLoginSec {
    padding: 40px 20px 100px;
  }
  .rnLoginInner {
    gap: 12px;
  }
  .rnLoginTitle {
    gap: 10px;
  }
  .rnLoginHeading {
    font-size: 28px;
    line-height: 1.4;
  }
  .rnLoginDesc {
    font-size: 14px;
    letter-spacing: -0.28px;
  }
  .rnLoginInner form {
    margin-top: 20px;
  }
}
