body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.page1 {
  display: flex;
  flex-direction: column;
  align-items: center; /* 가로 중앙 정렬 */
  justify-content: center; /* 세로 중앙 정렬 */
  width: 100%;
  height: 100%;
  transform: translateY(-5%); /* 살짝 위로 이동 */
}


div.page2 {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

div.page2 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  margin: 0; 
  padding: 0;
  overflow: hidden;
}


.img {
  display: flex;
  justify-content: center; /* 가로 중앙 정렬 */
  align-items: center; /* 세로 중앙 정렬 */
  width: 100%; /* 부모 요소 너비 전체 사용 */
  height: auto; /* 높이는 자동 조정 */
}

.img img {
  max-width: 100%; /* 이미지가 부모 요소보다 커지지 않도록 제한 */
  height: auto; /* 비율 유지하며 크기 조정 */
  object-fit: contain; /* 이미지가 비율을 유지하면서 잘리지 않도록 설정 */
}

.label {
  text-align: center; /* 텍스트 가로 중앙 정렬 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 내부 요소 세로 중앙 정렬 */
  gap: 5px; /* h2와 label 사이 간격 */
  width: 100%;
}

.label h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
}

.label .msg {
  font-size: 14px;
  color: #d32f2f;
  min-height: 20px; /* 메시지가 없어도 레이아웃 유지 */
}


.action {
  display: flex;
  flex-direction: column;
  align-items: center; /* 가로 중앙 정렬 */
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto; /* 중앙 정렬 */
}

.action .pw {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 5px;
  text-align: center;
  outline: none;
  background: white;
}

.action .pw:focus {
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 91, 187, 0.5);
}

.action .login {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background: #007bff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action .login:hover {
  background: #0056b3;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

