/* 로그인 페이지 공통 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background-color: #ffffff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-form {
  width: 100%;
  max-width: 400px;
  margin-bottom: 80px;
}

.form-title {
  text-align: center;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 3rem;
  font-weight: bold;
}

.form-group,
.input-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label,
.input-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  margin-left: 4px;
}

.form-group input,
.input-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
}

.form-group input::placeholder,
.input-group input::placeholder {
  color: #999;
}

.form-group input:focus,
.input-group input:focus {
  outline: none;
  border-color: #4263eb;
}

.form-group input.error,
.input-group input.error {
  border-color: #dc3545;
  background-color: #fff8f8;
}

.form-group input.error:focus,
.input-group input.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.error-message {
  display: none;
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
  margin-left: 4px;
  background-color: #fff8f8;
  padding: 8px;
  border-radius: 4px;
  border-left: 4px solid #dc3545;
}

.error-message.show {
  display: flex;
  align-items: center;
  gap: 6px;
}

.button-group {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.submit-button,
.login-button,
.register-button,
.create-account-button {
  flex: 1;
  padding: 15px; /* input과 동일 */
  border: none;
  border-radius: 8px; /* input과 동일 */
  font-size: 16px; /* input과 동일 */
  font-weight: 500; /* input과 비슷하게 */
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  max-width: 100%; /* input과 똑같이 */
  transition: all 0.2s ease;
}

.submit-button,
.login-button {
  background-color: #1f206a;
  color: white;
}

.submit-button:hover,
.login-button:hover {
  background-color: #1f206a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 99, 235, 0.2);
}

.register-button,
.create-account-button {
  background-color: #40c057;
  color: white;
}

.register-button:hover,
.create-account-button:hover {
  background-color: #37b24d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 192, 87, 0.2);
}

.back-link {
  text-align: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: block;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #4263eb;
}

.forgot-password {
  text-align: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-top: 16px;
}

/* 기관 로그인 전용 스타일 */
.org-login .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.org-login .login-form {
  width: 400px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.org-login .form-title {
  text-align: center;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 2rem;
  font-weight: bold;
}

/* 페어 관리자 로그인 전용 스타일 */
.fair-login .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.fair-login .login-form {
  width: 400px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.fair-login .form-title {
  text-align: center;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 2rem;
  font-weight: bold;
}

/* 부스 관리자 로그인 전용 스타일 */
.booth-login .back-link {
  position: fixed;
  bottom: 40px;
}
