/* 로그인 페이지 스타일 - member/code 페이지와 동일한 컨셉 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.login-image {
  flex: 1;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.login-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(/images/login_bg.jpg?fit=around|512:512&crop=512:512;*,*&output-format=jpg&output-quality=80) center/cover;
  opacity: 0.1;
}

.login-image-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.login-image-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-image-content p {
  font-size: 16px;
  opacity: 0.9;
}

.login-form-section {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.login-header h2 {
  font-size: 18px;
  font-weight: 400;
  color: #6c757d;
  margin: 0;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  background-color: #f8f9fa;
}

.form-control:focus {
  outline: none;
  border-color: #4a90e2;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-control::placeholder {
  color: #adb5bd;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid {
  border-color: #28a745;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.login-divider {
  margin: 30px 0;
  text-align: center;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
}

.login-divider span {
  position: relative;
  background: white;
  padding: 0 15px;
  color: #6c757d;
  font-size: 13px;
}

/* 반응형 디자인 */
@media (min-width: 992px) {
  .login-image {
    display: flex;
  }
}

@media (max-width: 991px) {
  .login-container {
    max-width: 500px;
  }
  
  .login-form-section {
    padding: 40px 30px;
  }
}

@media (max-width: 576px) {
  body {
    padding: 10px;
  }
  
  .login-form-section {
    padding: 30px 20px;
  }
  
  .login-header h1 {
    font-size: 26px;
  }
  
  .login-header h2 {
    font-size: 16px;
  }
}
