/* CSS 변수 정의 - 프로젝트 디자인 시스템과 일치 */
:root {
  /* 컬러 팔레트 */
  --primary-color: #0047bb; /* Facebook Blue 메인 컬러 */
  --accent-color: #f42736; /* 빨간색 강조 컬러 */

  /* 그레이 스케일 */
  --GRAY_01: #f5f5f5;
  --GRAY_02: #dcdcdc;
  --GRAY_03: #cccccc;

  /* 텍스트 컬러 */
  --text-primary: #000000; /* 주요 텍스트 */
  --text-secondary: #747474; /* 보조 텍스트 */
  --text-muted: #bcbcbc; /* 흐린 텍스트 */
  --text-highlight: #0047bb; /* 하이라이트 텍스트 */

  /* 보더 컬러 */
  --border-light: #e5e5e5;
  --border-medium: #cdcdcd;
  --border-dark: #666;
}

/* 기본 스타일 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 기본 타이포그래피 */
/* 주 폰트: Pretendard Variable, 대체 폰트: Noto Sans KR */
body {
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--GRAY_01);
  width: 100%;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 로그인 컨테이너 - 좌우 분할 레이아웃 */
.login-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 좌측 이미지 영역 */
.login-image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111111;
  background-image: url("/img/login/admin_image_01.jpg");
  background-size: 1120px 1080px;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* 스크린 리더용 텍스트 (히든) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 우측 로그인 폼 영역 */
.login-form-section {
  width: 800px;
  flex: 0 0 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 40px;
}

.login-form-wrapper {
  width: 100%;
  max-width: 420px;
}

/* 로고 영역 */
.login-logo {
  text-align: center;
  margin-bottom: 80px;
}

.login-logo-img {
  width: 104px;
  height: 123px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 로그인 제목 */
.login-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* 로그인 설명 텍스트 */
.login-description {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.48px;
  text-align: center;
}

.login-timer {
  display: block;
  margin-top: 8px;
  color: var(--primary-color);
  font-weight: 500;
}

/* 폼 스타일 */
.login-form {
  margin-top: 44px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 64px;
  padding: 0 16px;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.1);
}

.form-input:disabled {
  background-color: var(--GRAY_01);
  cursor: not-allowed;
}

/* readonly 인풋 스타일 - 포커스 불가능 */
.form-input--readonly {
  background-color: var(--GRAY_01);
  cursor: default;
  color: var(--text-secondary);
}

.form-input--readonly:focus {
  outline: none;
  border-color: #ccc;
  box-shadow: none;
}

.form-input::placeholder {
  color: var(--text-secondary);
}

/* 인증 안내 박스 */
.auth-info-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background-color: var(--GRAY_01);
  border-radius: 8px;
}

.auth-info-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-info-box .auth-timer {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  margin: 0;
}

.auth-info-box .btn--link {
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}
.captcha-area {
  width: 100%;
  height: 100px;
  margin-top: 32px;
  background-color: var(--GRAY_01);
}
.form-error {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent-color);
  line-height: 1.4;
}
.form-error {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent-color);
  line-height: 1.4;
}

.form-input[aria-invalid="true"] {
  border-color: var(--accent-color);
}

.form-input[aria-invalid="true"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(244, 39, 54, 0.1);
}

/* 버튼 스타일 */
.form-actions {
  margin-top: 32px;
}

.btn {
  width: 100%;
  height: 64px;
  padding: 0 24px;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn--primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #003a9a; /* primary-color보다 약간 어두운 색 */
}

.btn--primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.3);
}

.btn--primary:active {
  background-color: #002d77; /* 더 어두운 색 */
}

.btn--primary:disabled {
  background-color: var(--GRAY_03);
  cursor: not-allowed;
}

.btn--link {
  color: var(--text-primary);
  background: none;
  text-decoration: underline;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn--link:hover {
  color: #003a9a;
}
.btn--link:focus {
  outline: none;
}

/* 폼 푸터 */
.form-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
button:focus,
input:focus {
  outline: none;
}

/* 스크롤바 스타일 (필요시) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--GRAY_01);
}

::-webkit-scrollbar-thumb {
  background: var(--GRAY_03);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--GRAY_04);
}
@media (max-width: 1520px) {
  .login-form-section {
    width: 50%;
    flex: 0 0 50%;
  }
}
@media (max-width: 1150px) {
  .login-image-section {
    display: none;
  }
  .login-form-section {
    flex: 1;
  }
}
@media (max-width: 768px) {
  .login-form-section {
    padding: 20px;
  }
  /* 요소 간 상하 여백 조절 */
  .login-logo {
    margin-bottom: 30px;
  }
  .login-logo-img {
    width: 80px;
    height: auto;
  }
  .login-title {
    font-size: 24px;
  }
  .login-description {
    margin-top: 16px;
    font-size: 20px;
  }
  .login-form {
    margin-top: 24px;
  }
  .form-group {
    margin-bottom: 16px;
  }
  .form-input {
    height: 57px;
    font-size: 18px;
  }
  .btn {
    height: 57px;
    font-size: 22px;
  }
  .auth-info-box .auth-timer {
    font-size: 16px;
  }
  .auth-info-box .btn--link {
    font-size: 16px;
    margin-top: 8px;
    align-self: center;
  }
  .captcha-area {
    margin-top: 20px;
  }
  .form-actions {
    margin-top: 24px;
  }
  /* 인증 안내 박스 반응형 */
  .auth-info-box {
    flex-direction: column;
    height: auto;
  }
  .auth-info-box > div {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
