@charset "UTF-8";

/**
 * --------------------------------------------------------------------------
 * Login Page Styles
 * --------------------------------------------------------------------------
 * @description Styles specific to the Login page.
 *              [Refactored] Removed duplicate variables & toggle button styles.
 */

:root {
  --text-quaternary: #003575;
}

[data-theme="dark"] {
  --text-quaternary: #F2F4F6;
}

/* [1. Layout] 스크롤 방지 및 전체 화면 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-base);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  position: relative;
}

/* [2. Visual] 배경 Glow 효과 */
.glow-1, .glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}
.glow-1 {
  width: 60vw; height: 60vw;
  max-width: 600px; max-height: 600px;
  background: var(--primary-color);
  top: -10%; left: -10%;
}
.glow-2 {
  width: 50vw; height: 50vw;
  max-width: 500px; max-height: 500px;
  background: #00c6ff;
  bottom: -5%; right: -5%;
}
[data-theme="dark"] .glow-1, [data-theme="dark"] .glow-2 { opacity: 0.12; }

/* [3. Component] 로그인 컨테이너 (Mobile First: 심리스) */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  padding: 50px 40px;
  border-radius: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* [Light Mode PC] 테두리를 명확하게 노출 */
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.badge-system {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* [Dark Mode PC] 카드 구분감 유지 */
[data-theme="dark"] .login-container {
  background: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1); /* 다크모드용 연한 보더 */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* [4. PC 전용 스타일] (769px 이상: 카드 형태) */
@media (max-width: 768px) {
  .login-container {
    max-width: 320px;
    padding: 30px 24px;

    /* 배경, 보더, 그림자 모두 제거하여 일체감 부여 */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .sys-name { font-size: 22px; }

  /* 테마 토글 버튼 모바일 위치 조정 */
  #theme-toggle-btn {
    top: 16px !important;
    right: 16px !important;
  }
}

/* [5. Typography & Form] */
.header-area { margin-bottom: 48px; text-align: center; }

/* Flexbox 적용으로 로고와 텍스트 수직 중앙 정렬 및 간격(gap) 제어 */
.sys-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  /*gap: 5px;*/
  font-size: 26px; font-weight: 800; color: var(--text-primary);
  margin-bottom: 12px; letter-spacing: -0.8px; word-break: keep-all;
}

/* 로고 아이콘 스타일 (폰트 크기 26px에 맞춰 시각적 균형을 잡음) */
.sys-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}
.sys-desc { font-size: 14px; color: var(--text-tertiary); font-weight: 500; }
.sys-desc span {
  color: var(--primary-color);
  font-weight: 700;
}

.form-group { margin-bottom: 28px; }
.login-input {
  height: 48px !important;
  border: none !important;
  border-bottom: 2px solid var(--border-color) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 4px !important;
  font-size: 16px !important;
  transition: all 0.3s !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}
.login-input:focus {
  border-bottom-color: var(--primary-color) !important;
}

/* 자동완성 배경색 제거 */
.login-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: var(--text-primary) !important;
}

.login-btn {
  height: 54px;
  border-radius: 27px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  margin-top: 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  /*box-shadow: 0 8px 16px rgba(49, 130, 246, 0.25);*/
  box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.25);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.login-btn:hover { background-color: var(--primary-hover); }
.login-btn:active { transform: scale(0.98); }

/* 테마 토글 버튼 위치 강제 고정 */
#theme-toggle-btn {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 9999;
}

@media (max-width: 768px) {
  .sys-name { font-size: 24px; }
  #theme-toggle-btn {
    top: 16px !important;
    right: 16px !important;
  }
}

/* 비밀번호 래퍼: 기준점 역할 */
.input-pw-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* 입력창: 아이콘이 들어갈 우측 여백 확보 */
.input-pw-wrap .form-input {
  width: 100%;
  padding-right: 35px !important;
  box-sizing: border-box;
}

/* 눈 모양 토글 버튼: 우측 중앙에 절대 위치 */
.input-pw-wrap .btn-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 버튼 자체의 클릭 영역(크기)을 고정하여 안정감 확보 */
  width: 24px;
  height: 24px;
}

/* 실제 아이콘 크기(높이) 축소 제어 */
.input-pw-wrap .btn-pw-toggle i {
  /* 폰트 아이콘인 경우 (기본 14px~16px 권장) */
  /*font-size: 14px;*/

  /* SVG나 배경 이미지인 경우 아래 주석 해제 후 사용 */
  width: 14px;
  height: 14px;
}

.input-pw-wrap .btn-pw-toggle:hover {
  color: #333;
}

.text-quaternary {
  color: var(--text-primary) !important;
  padding-right: 10px;
}
