* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding: 0;
}

/* 일반 입력 폼 디자인 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #45a049;
}

/* 페이지 별 기본 스타일 */

/* 로그인 페이지 */
/* 기존 CSS와 동일, 추가된 부분만 언급 */
.login-background {
  position: relative;
  background-image: url('assets/images/electronics-background.jpg'); /* 전자제품 관련 배경 이미지 */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.8); /* 배경을 투명하게 만들어 이미지가 비침 */
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
  text-align: center;
}

.login-box form input,
.login-box form button {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.login-box form button {
  background: #4CAF50;
  color: white;
  border: none;
}

.login-box form button:hover {
  background: #45a049;
}

.error {
  background: #ffe5e5;
  color: #d33;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.success {
  background: #e0f7e9;
  color: #2e7d32;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* 로고 스타일 */
.logo-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 36px;
  color: #4CAF50;
  /* display: flex; */
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.icon {
  margin-right: 10px;
  font-size: 40px; /* 아이콘 크기 */
}

.market-name {
  font-weight: bold;
}
.error {
  background: #ffe5e5;
  color: #d33;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.success {
  background: #e0f7e9;
  color: #2e7d32;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* 에러 및 성공 메시지 */
.error {
  background: #ffe5e5;
  color: #d33;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.success {
  background: #e0f7e9;
  color: #2e7d32;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* 회원가입 페이지 */
.register-page input[type="text"],
.register-page input[type="password"],
.register-page input[type="email"],
.register-page input[type="tel"],
.register-page input[type="number"] {
  margin-bottom: 15px;
}

.register-box input[type="text"] {
  padding: 12px;
}

.register-box input[type="password"] {
  padding: 12px;
}

/* 로그인 페이지 */
.login-page input[type="text"],
.login-page input[type="password"] {
  margin-bottom: 15px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .login-box {
    width: 90%;
    padding: 20px;
  }

  .logo {
    font-size: 28px;
  }
}