.form-section {
  display: none;
}

.form-section.active {
  display: block;
}
body {
  background: url('/assets/background.jpg') center center/cover no-repeat fixed;
  color: #333;
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.login-container {
  background: white;
  border-radius: 15px;
  width: 1000px;
  height: 600px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.left-section {
  flex: 1;
  background: url('/assets/login3d.jpg') center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  color: white;
  position: relative;
  padding: 40px;
}

.left-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 45, 248, 0.377);
  pointer-events: none;
}

.left-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.left-content h2 {
  font-size: 30px;
  font-weight: bold;
  margin: 30px;
  font-weight: normal;
  line-height: 1.5;
}

.right-section {
  flex: 1;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.logo {
  width: 240px;
  height: auto;
  margin: 0 0 40px 0;
  display: block;
}

.login-container h1 {
  display: none;
}

.tab-buttons {
  display: flex;
  justify-content: flex-start;
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 30px;
  padding: 0;
  border-bottom: 1px solid #e0e0e0;
}

.tab-buttons button {
  flex: none;
  padding: 12px 20px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  border-radius: 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  margin-right: 20px;
}

.tab-buttons button.active {
  background-color: transparent;
  color: #4c63d2;
  font-weight: bold;
  border-bottom: 2px solid #4c63d2;
}

input[type="text"], input[type="password"] {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  color: #333;
  font-size: 14px;
  box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border: 1px solid #4c63d2;
  background: white;
}

input::placeholder {
  color: #999;
}

button.login-btn {
  width: 100%;
  background-color: #4c63d2;
  border: none;
  padding: 15px;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.login-btn:hover {
  background-color: #3a4fb8;
  transform: translateY(-2px);
}

p#errorMessage, p#engineerError {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 15px;
}

.extra-links {
  text-align: center;
  margin-top: 20px;
}

.extra-links a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
}

.extra-links a:hover {
  color: #4c63d2;
  text-decoration: underline;
}

/* Reset Password Modal */
.reset-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.reset-modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.reset-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.reset-modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.reset-modal-header .close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
}

.reset-modal-body .form-group {
  margin-bottom: 15px;
}

.reset-modal-body label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

.reset-modal-body input,
.reset-modal-body select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.reset-modal-footer {
  margin-top: 20px;
}

.message {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 600;
  display: none;
  text-align: center;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  display: block;
}
@media (max-width: 768px) {

  body {
    height: auto;
    min-height: 100vh;
    padding: 20px 20px;
    align-items: center;
  }

  .login-container {
    flex-direction: column;
    width: 100%;
    height: auto;
    max-width: 500px;
    margin: 20px auto;
  }

  .left-section,
  .right-section {
    flex: none; /* 이제 똑같은 비율로 나눌 필요 없으니까 flex를 초기화! */
    height: auto; /* 높이는 내용에 따라 자동으로! */
  }

  .left-section {
    padding: 30px 20px;
    min-height: 200px;
    justify-content: center;
  }

  .left-content h2 {
    font-size: 24px;
    margin: 15px;
  }

  .right-section {
    padding: 30px 20px;
  }
  .logo-panel {
    display: flex;
    justify-content: center;
  }

  /* 혹시 로고 크기가 너무 크면 모바일에서 줄여줘도 좋아 */
  .logo {
    width: 120px;
    margin-bottom: 20px;
  }

  .tab-buttons {
    justify-content: center;
    margin-bottom: 20px;
  }

  .tab-buttons button {
    font-size: 13px;
    padding: 10px 15px;
  }
  input[type="text"],
  input[type="password"] {
    padding: 12px;
    margin-bottom: 15px;
  }

  button.login-btn {
    padding: 12px;
    font-size: 15px;
  }
}
/* ✨ 모바일 반응형 설정을 위한 미디어 쿼리 끝! ✨ */
