body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  background: url("../img/Main_bg.png") no-repeat center center fixed;
  background-size: cover;
}

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  width: min(1080px, 92vw);
  aspect-ratio: 2 / 1;
  display: grid;
  grid-template-columns: 31.5% 1fr;
  border-radius: clamp(12px, 1.85vw, 20px);
  background: #fff;
  box-shadow: 10px 10px 50px 4px rgba(59, 10, 245, 0.15);
  overflow: hidden;
}

.login-panel {
  padding: clamp(24px, 4.4vw, 48px);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-panel {
  background: #f8dfe4;
  position: relative;
  overflow: hidden;
}

.banner-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-controls {
  position: absolute;
  bottom: clamp(14px, 2.2vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
}

.banner-pause {
  width: clamp(32px, 3.7vw, 40px);
  height: clamp(32px, 3.7vw, 40px);
  border-radius: 50%;
  border: none;
  background: #4b5270;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.pause-bar {
  display: block;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* 재생 상태: 삼각형 */
.banner-pause.is-paused .pause-bar {
  display: none;
}

.banner-pause.is-paused::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff;
  margin-left: 2px;
}

.banner-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  background: #4b5270;
  border-radius: 999px;
  padding: clamp(6px, 0.7vw, 8px) clamp(10px, 1.3vw, 14px);
}

.banner-arrow {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: clamp(22px, 2.4vw, 26px);
  height: clamp(22px, 2.4vw, 26px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: clamp(13px, 1.4vw, 16px);
}

.banner-dots {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.6vw, 7px);
}

.dot {
  width: clamp(6px, 0.65vw, 7px);
  height: clamp(6px, 0.65vw, 7px);
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

.logo_login {
  display: block;
  width: clamp(80px, 13.9vw, 150px);
  margin: 0 auto clamp(16px, 2.8vw, 30px);
}

.input-group {
  position: relative;
  margin-bottom: 5px;
}

.input-group i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.25;
}

.input-group input {
  width: 100%;
  padding: clamp(6px, 1.1vw, 12px) clamp(6px, 1.1vw, 12px)
    clamp(6px, 1.1vw, 12px) clamp(20px, 3.2vw, 35px);
  border: 1px solid #ddd;
  border-radius: clamp(6px, 0.9vw, 10px);
  box-sizing: border-box;
  font-size: clamp(11px, 1.2vw, 14px);
}

.checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-bottom: 20px;
}

.checkbox-label {
  font-size: 14px;
  opacity: 0.5;
  letter-spacing: -0.14px;
}

.login-btn {
  width: 100%;
  padding: clamp(8px, 1.3vw, 14px);
  border: none;
  border-radius: clamp(6px, 0.9vw, 10px);
  background: #e62836;
  color: white;
  font-size: clamp(12px, 1.5vw, 16px);
  cursor: pointer;
}

/* 에러 메시지 */
.login-error {
  background: #fff0f0;
  color: #e62836;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
  display: none;
}

.login-error.show {
  display: block;
}

/* ── 모바일 해상도로 전환 되었을때 ── */

@media (max-width: 768px) {
  .login-box {
    width: 100%;
    min-height: 100vh;
    aspect-ratio: unset;
    grid-template-columns: 1fr;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .banner-panel {
    display: none;
  }

  .login-panel {
    width: 100%;
    min-height: 100vh;
    padding: 60px 32px 40px;
    background: transparent;
    box-sizing: border-box;
    justify-content: center;
  }

  .logo_login {
    width: 200px;
    margin: 0 auto 40px;
  }

  .input-group {
    margin-bottom: 12px;
  }

  .input-group input {
    padding: 14px 14px 14px 38px;
    border-radius: 999px;
    font-size: 14px;
    background: rgba(255,255,255,0.85);
  }

  .checkbox {
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .checkbox-label {
    font-size: 13px;
  }

  .login-btn {
    padding: 15px;
    border-radius: 999px;
    font-size: 16px;
  }
}
