/* Login Page Styles - Lineage Classic Theme */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    /* 비네트 효과 */
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%),
    /* 기본 배경색 */
    #1a1410;
}

/* 카드 상단 드래곤 이미지 */
.login-bg-dragon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
  opacity: 1;
  pointer-events: none;
  filter: grayscale(30%);
  z-index: 3;
}

/* 상단 장식 */
.login-ornament-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background:
    linear-gradient(180deg,
      rgba(139, 105, 20, 0.3) 0%,
      rgba(139, 105, 20, 0.1) 50%,
      transparent 100%
    );
  pointer-events: none;
}

/* 밑줄 효과는 로고 아래로 이동 */
.login-ornament-top::before {
  content: '';
  display: none;
}

/* 로고 영역 */
.login-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  text-align: center;
}

.login-logo::after {
  content: '';
  display: none;
}

.login-logo-img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(212, 168, 75, 0.4));
  transition: all 0.3s ease;
}

.login-logo-img:hover {
  filter: drop-shadow(0 4px 30px rgba(212, 168, 75, 0.6));
  transform: scale(1.02);
}


/* 로그인 카드 */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 40px 35px;
  background: linear-gradient(180deg, #3d3228 0%, #2e261f 50%, #252019 100%);
  border: 2px solid #4a3d2e;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(212, 168, 75, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(139, 105, 20, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

/* 로그인 타이틀 */
.login-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 600;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #d4a84b;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-title::after {
  content: '';
  display: none;
}

.login-alert {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  text-align: center;
}

.login-alert-error {
  background: rgba(160, 40, 40, 0.2);
  border: 1px solid rgba(160, 40, 40, 0.6);
  color: #f1c3c3;
}

.login-alert-success {
  background: rgba(30, 120, 60, 0.2);
  border: 1px solid rgba(30, 120, 60, 0.6);
  color: #cde9d6;
}

/* 폼 그룹 */
.login-form-group {
  margin-bottom: 20px;
}

.login-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #a89070;
  letter-spacing: 0.05em;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #e0d5c5;
  background:
    linear-gradient(180deg, #1f1a15 0%, #2a231c 100%);
  border: 1px solid #3d3228;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-input-wrapper {
  position: relative;
}

.login-input-wrapper .login-input {
  padding-right: 44px;
}

.login-input-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #cbb88e;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.login-input-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.login-input-toggle .icon-eye-open {
  display: none;
}

.login-input-toggle.is-active .icon-eye-open {
  display: block;
}

.login-input-toggle.is-active .icon-eye-closed {
  display: none;
}

.login-input-toggle.is-active {
  color: #f1d18b;
}

.login-input-toggle:focus {
  outline: none;
}

.login-input::placeholder {
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #5a5045;
}

.login-input:focus {
  border-color: #8b6914;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(139, 105, 20, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 체크박스 */
.login-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.login-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #8b6914;
  cursor: pointer;
}

.login-checkbox-label {
  font-size: 12px;
  color: #8b7355;
  cursor: pointer;
}

/* 로그인 버튼 */
.login-btn {
  width: 130%;
  margin-left: -15%;
  height: 59px;
  padding: 0 60px;
  font-size: 18px;
  font-weight: 600;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #e8d5a8;
  letter-spacing: 0.12em;
  background: url('/images/lintem_btn.webp') center center / contain no-repeat;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(212, 168, 75, 0.3);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.login-btn:hover {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)) brightness(1.1);
  color: #fff8e0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(255, 200, 100, 0.5);
}

.login-btn:active {
  transform: translateY(0);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) brightness(0.95);
}

/* 구분선 */
.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 12px;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #4a3d2e 50%,
    transparent 100%
  );
}

.login-divider-text {
  font-size: 11px;
  color: #5a5045;
  letter-spacing: 0.05em;
}

/* 링크 영역 */
.login-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.login-link {
  font-size: 12px;
  color: #8b7355;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: #d4a84b;
}

/* 푸터 */
.login-footer {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-top: 30px;
  padding: 20px 0;
  text-align: center;
  z-index: 1;
  border-top: 1px solid rgba(139, 105, 20, 0.2);
}

.login-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(191, 160, 95, 0.3) 50%,
    transparent 100%
  );
}

.login-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.login-footer-link {
  font-size: 11px;
  color: #8b7355;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-footer-link:hover {
  color: #bfa05f;
}

.login-footer-divider {
  font-size: 10px;
  color: #4a4035;
}

.login-footer-copyright {
  font-size: 11px;
  color: #4a4035;
  letter-spacing: 0.05em;
  margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .login-page {
    padding: 20px;
  }

  .login-logo-img {
    width: 140px;
  }

  .login-card {
    padding: 30px 25px;
  }

  .login-title {
    font-size: 18px;
  }

  .login-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .login-footer-links {
    gap: 6px;
  }

  .login-footer-link {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 25px 20px;
  }

  .login-ornament-top {
    height: 40px;
  }
}
