/* Pretendard 폰트 import */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* 로그인 페이지 스타일 */
body.login-body {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;
  position: relative;
  background: linear-gradient(to bottom, var(--primary-color), #00816e);
}

body.login-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), #00816e);
  z-index: 1;
}

/* 뒤로가기 버튼 */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #fff;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 로그인 컨테이너 */
.login-container {
  background: transparent;
  text-align: center;
  width: 90vw;
  max-width: 400px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 로그인 폼 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-group {
  position: relative;
  text-align: left;
}

.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
}

/* 자동완성 시 배경색 투명 유지 */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  background-color: transparent !important;
  background: transparent !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin-top: 5px;
  transition: all 0.3s ease;
}

.input-group input:focus + .input-line {
  background: rgba(255, 255, 255, 0.8);
  height: 2px;
}

/* 버튼 그룹 */
.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-btn {
  padding: 12px 15px;
  font-size: 16px;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  height: 45px;
  font-weight: 600;
  letter-spacing: 1px;
}

.login-btn:hover:not(:disabled) {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .login-container {
    width: 98vw;
    padding: 15px;
  }

  .input-group input {
    font-size: 13px;
    padding: 8px 0;
  }

  .login-btn {
    height: 40px;
    font-size: 13px;
  }
}
