/* 나눔스퀘어 웹폰트 불러오기 */
@import url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css');

/* 2. 모든 요소에 폰트 적용 */
* {
  font-family: 'NanumSquare', sans-serif !important;
  letter-spacing: -0.5px; 
}


* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Noto Sans KR", sans-serif; }
html, body { width: 100%; height: 100%; overflow: hidden; }
.container { display: flex; width: 100vw; height: 100vh; }



/* ================================
   토스트 컨테이너 
================================ */
.toast-container {
    position: fixed;
    top: 30px;         /* 하단에서 상단으로 위치 변경 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    background-color: rgba(19, 27, 44, 0.95);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    /* 애니메이션 이름 변경: fadeInDown */
    animation: fadeInDown 0.3s ease-out, fadeOut 0.3s ease-in 2.2s forwards;
}

/* 위에서 아래로 내려오는 효과 */
@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); /* 위에서 시작 */
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 사라질 때 효과 */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* 왼쪽 */
.left {
  width: 50%;
  height: 100%;
  background: url("../images/login_background.png") center/cover no-repeat;
  position: relative;
  color: #fff;
}

.image-overlay {
  position: absolute;
  left: 40px;
  bottom: 60px;
  width: 80%;
}
.badge {
  display: inline-block;
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.image-overlay h2 { font-size: 2.2rem; line-height: 1.4; }
.image-overlay strong { font-weight: 800; }

/* 오른쪽 */
.right {
  width: 50%;
  height: 100%;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  overflow-y: auto;
  transition: 0.3s;
  position: relative;
}

/* 폼 공통 */
.form-container { text-align: center; max-width: 400px; width: 100%; }
input, button {
  width: 100%;
  height: 40px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}
button {
  background: #001065;
  color: white;
  border: none;
  cursor: pointer;
}
.link { color: #3066ff; cursor: pointer; }
.back { color: #58616A; font-size: 13px; margin-top: 15px; cursor: pointer; text-align:center; }
.check { display:flex; align-items:center; gap:6px; justify-content:flex-start; font-size:13px; margin-bottom:5px; }

@media (max-width: 900px) {
  .container { flex-direction: column; }
  .left, .right { width: 100%; height: 50vh; }
}


/* -------------------------------------- */
/* 폼 세부 스타일 정리 */
/* -------------------------------------- */

/* 폼 제목 */
.form-container h2 {
  color: #58616A;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* 라벨 (이름, 이메일 등) */
.label {
  color: #58616A;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 6px;
}

/* 입력 필드 */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-row input {
  flex: 1;
}

/* 아이콘이 오른쪽에 붙는 input */
.input-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon input {
  padding-right: 40px;
}

.input-with-icon .icon {
  width: 24px;
  height: 24px;
  background: #58616A;
  border-radius: 2px;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

/* 버튼 (공통) */
.btn {
  width: 100%;
  height: 48px;
  background: #001065;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}
.btn:hover { background: #1f2942; }

/* 약관 구분선 */
.divider {
  width: 100%;
  border-top: 1px solid rgba(88,97,106,0.3);
  margin: 5px 0;
}

/* 체크박스형 라인 */
.check-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #58616A;
}

.check-line .link { text-decoration: underline; }

/* 탭 전환 (ID / PW 찾기) */
.tab-box {
  display: flex;
  width: 100%;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}
.tab.active {
  background: #001065;
  color: white;
}
.tab:not(.active) {
  background: white;
  color: #001065;
}


/* ------------------------------------------------------ */
/* 회원가입 폼  입력창 */
.form-oneset {  /* 타이틀과 입력창 세트 */
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #58616A;
  font-size: 16px;
  font-weight: 600;
}
.form-black-btn { /* 검정색 버튼 */
  background: #001065;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 16px;
  font-weight: 500;
}


/* ------------------------------------------------------ */


/* 약관 전용 박스 */
.terms-content-box {
  align-self: stretch;
  height: 500px; /* 높이를 고정 */
  flex: 1;
  padding: 15px;
  background: white;
  overflow-y: auto; /* 내용이 길면 스크롤 발생 */
  border-radius: 8px;
  border: 1px solid #D4D4D4;
  text-align: left;
  flex: none; /* 부모 컨테이너의 flex 설정에 영향을 받지 않도록 고정 */
}

.terms-text {
  color: #58616A;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* 중앙 정렬용 래퍼 */
.flex-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}



/* ------------------------------------------------------ */
/* 이메일 인증 안내 박스 */
.auth-info-box {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(0, 16, 101, 0.05) 0%, rgba(0, 16, 101, 0.05) 100%), white;
  border-radius: 8px;
  border: 1px solid #001065;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: left;
}

.auth-info-box img {
  flex-shrink: 0;
}

.auth-info-text-group {
  display: flex;
  flex-direction: column;
}

.auth-info-main {
  color: #001065;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.auth-info-sub {
  color: #58616A;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}