* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066cc;
  --primary-dark: #004c99;
  --primary-default: linear-gradient(
    337deg,
    #0066cc 0%,
    var(--primary-dark) 100%
  );
  --text-color: #111;
  --gray-light: #666;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* 로그인 컨테이너 */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #f8f9fa;
}

/* 왼쪽 브랜드 영역 */
.login-brand {
  background-image: url(/images/main_news.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.brand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.brand-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.brand-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 60px;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* 오른쪽 로그인 폼 영역 */
.login-form-wrapper {
  background: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-form-container {
  width: 100%;
  max-width: 460px;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 16px;
  color: var(--gray-light);
  font-weight: 400;
}

/* 로그인 폼 */
.login-form {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
}

.form-label svg {
  color: var(--primary-color);
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Noto Sans KR", sans-serif;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--primary-color);
}

.eye-icon {
  display: block;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-text {
  font-size: 14px;
  color: var(--gray-light);
}

.form-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-link {
  font-size: 14px;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-link:hover {
  color: var(--primary-color);
}

.link-divider {
  color: #ddd;
  font-size: 12px;
}

/* 버튼 그룹 (로그인 + 회원가입) */
.btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  padding: 16px;
  background: var(--primary-default);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-signup {
  padding: 16px;
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-signup:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 구분선 */
.login-divider {
  position: relative;
  text-align: center;
  margin: 32px 0;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.login-divider span {
  position: relative;
  background: var(--white);
  padding: 0 16px;
  font-size: 14px;
  color: var(--gray-light);
}

/* 소셜 로그인 */
.social-login {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.social-btn {
  padding: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  background: var(--white);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn.kakao {
  background: #fee500;
  border-color: #fee500;
  color: #000000;
}

.social-btn.kakao:hover {
  background: #fdd835;
}

.social-btn.naver {
  background: #03c75a;
  border-color: #03c75a;
  color: var(--white);
}

.social-btn.naver:hover {
  background: #02b350;
}

.social-btn.google {
  background: var(--white);
  border-color: #e0e0e0;
  color: var(--text-color);
}

.social-btn.google:hover {
  background: #f8f9fa;
}

/* 푸터 링크 */
.login-footer {
  text-align: center;
  padding-top: 20px;
}

.footer-link {
  font-size: 14px;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-divider {
  color: #ddd;
  margin: 0 12px;
}

/* 반응형 */
@media (max-width: 1200px) {
  .brand-title {
    font-size: 40px;
  }

  .stat-box {
    padding: 20px;
  }

  .stat-number {
    font-size: 28px;
  }
}

@media (max-width: 968px) {
  .login-container {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 40px;
    min-height: 400px;
  }

  .brand-title {
    font-size: 36px;
  }

  .brand-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .stat-box {
    padding: 16px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  .login-form-wrapper {
    padding: 40px 20px;
  }
}

@media (max-width: 576px) {
  .login-brand {
    padding: 30px 20px;
    min-height: 300px;
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-subtitle {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .brand-stats {
    gap: 12px;
  }

  .login-title {
    font-size: 28px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-group {
    grid-template-columns: 1fr;
  }

  .social-login {
    grid-template-columns: 1fr;
  }
}
