@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Noto+Sans+KR:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('한국지도1.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}



h1 {
    font-size: 2rem;
    text-align: center;
    color: #FFD700;
    margin-bottom: 25px;
}

.int-area {
    margin-bottom: 20px;
    position: relative;
}

.int-area input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    outline: none;
}

.int-area input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.int-area input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #FFD700;
}

.error-message {
    display: none;
    color: #FF4C4C;
    font-size: 0.85rem;
    margin-top: 5px;
    position: absolute;
    left: 0;
    bottom: -20px;
}

.btn-area {
    text-align: center;
    margin-top: 20px;
}

.idpwtext h2{
  text-align: center;
  margin-bottom: 5px;
}

/* 제출 버튼 스타일 개선 */
.btn-area button {
    background: linear-gradient(145deg, #29fa04, #1bc300); /* 그라데이션으로 입체감 */
    color: #000;
    font-weight: 900;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 0 #039e3c, 0 8px 15px rgba(0,0,0,0.2); /* 위로 튀어나온 볼록 그림자 */
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

/* 클릭 시 눌리는 효과 */
.btn-area button:active {
    transform: translateY(4px); /* 아래로 눌림 */
    box-shadow: 0 2px 0 #039e3c, 0 4px 8px rgba(0,0,0,0.2); /* 그림자 줄어듦 */
}

/* 마우스 올렸을 때 살짝 반짝임 */
.btn-area button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg) translateX(-100%);
    transition: all 0.4s ease;
}

.btn-area button:hover::before {
    transform: rotate(45deg) translateX(100%);
}

/* 호버 시 색상 약간 변경 */
.btn-area button:hover {
    background: linear-gradient(145deg, #d8c303, #17a900 , #d8c303   );
    transform: translateY(-5px); /* 아래로 눌림 */

}

/* 개인신용정보 스타일 */

.agreement-container{
  margin-top: 10px;
  font-size: 1.5rem;
  color: #111827; /* slate-900 */
}

/* 라벨: 아이템 수평 정렬, 모바일에선 필요시 줄바꿈 */
.agreement-container label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
  cursor: pointer;
}

/* 데스크탑 이상: 한 줄 유지 시도 (너무 좁으면 자동 줄바꿈) */
@media (min-width: 1024px){
  .agreement-container label{
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}

/* 링크(약관 보기) */
.agreement-container .termsLink{
  font-weight: 600;
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-style: dotted;
  color: #2563eb; /* blue-600 */
}
.agreement-container .termsLink:hover{
  text-decoration-style: solid;
}
.agreement-container .termsLink:focus-visible{
  outline: 3px solid rgba(37,99,235,.35);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 에러 메시지 */
.agreement-container .error-message{
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #e11d48; /* rose-600 */
}

/* --- 폼 검증 시 에러 표시 (폼에 was-validated 클래스가 있을 때) --- */
form.was-validated .agreement-container:has(input[required]:not(:checked)) .error-message{
  display: block;
}

/* 체크박스: 기본 브라우저 스타일 제거하고 커스텀 */
.agreement-container input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;         /* gray-400 */
  border-radius: 5px;
  display: inline-grid;
  place-content: center;
  background: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .05s;
  position: relative;
}

/* 포커스 링 (키보드 접근성) */
.agreement-container input[type="checkbox"]:focus-visible{
  box-shadow: 0 0 0 3px rgba(37,99,235,.35);
  border-color: #2563eb;
}

/* 눌렀을 때 살짝 눌리는 느낌 */
.agreement-container input[type="checkbox"]:active{
  transform: translateY(1px);
}

/* 체크 표시(갈고리) */
.agreement-container input[type="checkbox"]::after{
  content: "";
  width: 9px;
  height: 5px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .18s ease-out;
}

/* 체크 상태 */
.agreement-container input[type="checkbox"]:checked{
  background: #2563eb;      /* blue-600 */
  border-color: #2563eb;
}
.agreement-container input[type="checkbox"]:checked::after{
  transform: translateY(-1px) rotate(45deg) scale(1);
}

/* 오류 상태 테두리 (검증 후 미체크 시) */
form.was-validated .agreement-container:has(input[required]:not(:checked)) input[type="checkbox"]{
  border-color: #e11d48;     /* rose-600 */
  box-shadow: 0 0 0 3px rgba(225,29,72,.15);
}

/* 다크 모드 대응 */
@media (prefers-color-scheme: dark){
  .agreement-container{ color: #e5e7eb; } /* gray-200 */
  .agreement-container input[type="checkbox"]{
    background: #fff;     /* gray-900 */
    border-color: #6b7280;   /* gray-500 */
  }
  .agreement-container .termsLink{ color: #f80000; } /* blue-400 */
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    color: #000;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

#agree-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#agree-button:hover {
    background: #218838;
}

/* 흔들기 애니메이션 */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.idpwlaw {
    display: flex;
    flex-direction: column; /* 세로로 정렬 */
    align-items: flex-start; /* 좌측 정렬 */
    gap: 10px; /* 항목 간 간격 */
    margin: 15px 0;
}

.idpwlaw a {
    text-decoration: none;
    color: #2563eb; /* 링크 색상 */
    font-weight: 500;
    font-size: 1rem;
}

.idpwlaw a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

