@charset "UTF-8";
/* ============================================================
   themes/erp/style/login_modal.css
   공용 로그인 모달
   ------------------------------------------------------------
   로드: footer.php 가 모든 페이지에서 항상 로드
        (additionalCss 방식 아님 — 어느 페이지서든 뜰 수 있어서)
   짝  : login_modal.js / components/_login_modal.php
   의존: base.css (토큰)
   ============================================================ */

.login-modal{
  position:fixed;
  inset:0;
  z-index:600;                 /* 담기팝업(500)보다 위 */
  display:flex;
  align-items:center;
  justify-content:center;
}
.login-modal .dim{
  position:absolute;
  inset:0;
  background:rgba(20,32,46,.46);
}

.login-modal .box{
  position:relative;
  width:360px;
  max-width:calc(100% - 32px);
  padding:30px 28px 24px;
  background:var(--surface);
  border:1px solid var(--ink);
}

.lm-x{
  position:absolute;
  top:10px; right:12px;
  border:0;
  background:none;
  font-size:20px;
  line-height:1;
  color:var(--ink-faint);
  cursor:pointer;
}
.lm-x:hover{ color:var(--ink); }

.login-modal h3{
  margin:0 0 6px;
  font-family:var(--f-display);
  font-weight:600;
  font-size:20px;
  letter-spacing:-.02em;
}

/* 상황별 안내문 (비어 있으면 자리 안 차지) */
.lm-msg{
  margin:0 0 16px;
  font-size:13px;
  line-height:1.6;
  color:var(--ink-soft);
}
.lm-msg:empty{ display:none; }

.lm-field{ margin-bottom:12px; }
.lm-field label{
  display:block;
  margin-bottom:5px;
  font-size:12.5px;
  color:var(--ink-soft);
}
.lm-field input{
  width:100%;
  padding:11px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r);
  font-size:14px;
}
.lm-field input:focus{
  outline:none;
  border-color:var(--ink);
}

.lm-error{
  margin:0 0 12px;
  padding:9px 12px;
  background:#FBEFEC;
  border:1px solid var(--warn);
  font-size:12.5px;
  line-height:1.55;
  color:var(--warn);
}

.lm-submit{
  width:100%;
  padding:13px;
  background:var(--accent);
  color:#fff;
  border:0;
  border-radius:var(--r);
  font-size:14.5px;
  font-weight:500;
  cursor:pointer;
}
.lm-submit:hover{ background:var(--accent-hi); }
.lm-submit:disabled{
  background:var(--shelf);
  cursor:not-allowed;
}

.lm-links{
  margin-top:14px;
  text-align:center;
  font-size:12.5px;
  color:var(--ink-faint);
}
.lm-links a{ color:var(--ink-soft); }
.lm-links a:hover{ color:var(--ink); text-decoration:underline; }
.lm-links .sep{ margin:0 7px; color:var(--shelf-dark); }