/* Design Ref: §2 — Option C Pragmatic, Split layout */
@import url("/assets/vendor/fonts/pretendard/pretendard.css");

body { font-family: 'Pretendard', sans-serif !important; }

/* 전체 페이지 */
.login-page {
  margin: 0;
  padding: 0;
  background: #e8eaf0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 중앙 카드 (좌우 분할) */
.login-card {
  display: flex;
  width: 780px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

/* ── 좌측 패널 ── */
.login-left {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* 브랜드 / 세계지도 영역 */
.login-brand-area {
  flex: 1;
  position: relative;
  background-color: #f0f4f8;
  background-image: radial-gradient(circle, #b0bdd0 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 30px 40px;
  text-align: center;
}

.login-erp-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: #5a6a8a;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-intranet-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a2744;
  letter-spacing: 3px;
  margin: 0;
}


/* ── 우측 패널 ── */
.login-right {
  width: 300px;
  flex-shrink: 0;
  background: #1a2744;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
}

/* Alert: 폼 바로 위 */
.login-right .alert {
  width: 100%;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

/* 로고 영역 */
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 8px;
}


/* 우측 폼 레이블 */
.login-right .form-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

/* 우측 입력 필드 */
.login-right .form-control {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.login-right .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: none;
}

.login-right .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* 브라우저 자동완성 시 텍스트·배경 색상 강제 적용
   - background-color는 autofill 시 브라우저가 덮으므로 inset box-shadow로 우회
   - #313d57 = #1a2744(패널 배경) + rgba(255,255,255,0.1)(input 배경) 합성값 */
.login-right .form-control:-webkit-autofill,
.login-right .form-control:-webkit-autofill:hover,
.login-right .form-control:-webkit-autofill:focus,
.login-right .form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #313d57 inset !important;
  box-shadow: 0 0 0 1000px #313d57 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transition: background-color 9999s ease-in-out 0s;
}

.login-right .input-group-text {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* input-group-merge: 아이콘을 input 내부 우측에 absolute 오버레이 */
.login-right .input-group.input-group-merge {
  position: relative;
  flex-wrap: nowrap;
}

.login-right .input-group.input-group-merge .form-control {
  padding-right: 2.5rem !important;
  border-radius: 4px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.login-right .input-group.input-group-merge .input-group-text {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 5;
  background: transparent;
  border: none;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
}

/* 로그인 버튼 */
.login-right .btn-login {
  background: #1976d2;
  border-color: #1976d2;
  color: #ffffff;
  font-weight: 600;
}

.login-right .btn-login:hover {
  background: #1565c0;
  border-color: #1565c0;
}

/* 아이디 저장 + 찾기 링크 */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.78rem;
  margin-top: 8px;
}

.login-options .form-check-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.login-options .form-check-input {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: transparent;
}

/* 아이디 저장 / 찾기 링크 수직 정렬 보정 */
.login-options .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding-top: 0;
  min-height: unset;
}

.login-find-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.78rem;
}

.login-find-link:hover {
  color: #ffffff;
}

/* Alert 색상 보정 (우측 패널 내) */
.login-right .alert-danger {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
  color: #ffb3b3;
  font-size: 0.82rem;
}

.login-right .alert-success {
  background: rgba(25, 135, 84, 0.2);
  border-color: rgba(25, 135, 84, 0.4);
  color: #a3d9b1;
  font-size: 0.82rem;
}

/* ── Footer ── */
.login-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #999;
  padding: 14px;
}

/* ── 반응형 (모바일) ── */
@media (max-width: 767px) {
  .login-left {
    display: none;
  }

  .login-card {
    width: 100%;
    max-width: 360px;
  }

  .login-right {
    width: 100%;
  }
}

/* ── 아이디/비밀번호 찾기 iframe (로그인 페이지는 항상 light-style) ── */
.find-account-iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}
