.auth-page{
  min-height:100vh;
  background:#f4f8fc;
}
.login-wrap{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);
  background:linear-gradient(90deg,#005BAC 0 54%,#f4f8fc 54% 100%);
}
.login-visual{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:40px;
  padding:54px 68px;
  overflow:hidden;
  color:#fff;
  background:
    linear-gradient(118deg,rgba(255,255,255,.11) 0%,rgba(255,255,255,0) 32%),
    linear-gradient(145deg,#043A70 0%,#005BAC 54%,#2C8CD6 100%);
}
.login-visual::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(90deg,rgba(0,0,0,.42),rgba(0,0,0,.08));
}
.brand-big,
.login-copy,
.metrics{
  position:relative;
  z-index:1;
}
.brand-big{
  display:inline-flex;
  align-items:center;
  gap:14px;
  width:max-content;
  color:#fff;
  text-decoration:none;
}
.brand-big .brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.08;
}
.brand-big strong{
  font-size:22px;
  font-weight:900;
  letter-spacing:0;
}
.brand-big small{
  margin-top:7px;
  font-size:12px;
  font-weight:800;
  color:rgba(255,255,255,.70);
  letter-spacing:.04em;
}
.maze-mark{
  width:52px;
  height:52px;
  border-radius:12px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  background:linear-gradient(145deg,#0067bd 0%,#004f97 100%);
  color:#fff;
  font-size:30px;
  font-weight:900;
  line-height:1;
  box-shadow:0 14px 30px rgba(2,32,72,.28),inset 0 1px 0 rgba(255,255,255,.16);
}
.maze-mark.small{
  width:42px;
  height:42px;
  border-radius:10px;
  font-size:24px;
  box-shadow:none;
}
.login-copy{
  max-width:720px;
}
.login-eyebrow{
  margin-bottom:16px;
  color:#7FF1D0;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
}
.login-visual h1{
  margin:0;
  color:#fff;
  font-size:clamp(38px,5vw,64px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:0;
}
.login-visual p{
  max-width:660px;
  margin:22px 0 0;
  color:rgba(255,255,255,.78);
  font-size:16px;
  line-height:1.75;
}
.metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  max-width:760px;
}
.metrics>div{
  min-height:92px;
  padding:18px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.metrics b{
  display:block;
  color:#fff;
  font-size:19px;
  font-weight:900;
}
.metrics span{
  display:block;
  margin-top:8px;
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:800;
}
.login-panel{
  min-height:100vh;
  display:grid;
  align-items:center;
  padding:48px;
  background:#f4f8fc;
}
.login-card{
  width:min(100%,468px);
  margin:0 auto;
  padding:34px;
  border:1px solid #d6e2ee;
  border-radius:18px;
  background:#fff;
  box-shadow:0 26px 70px rgba(14,49,83,.14);
}
.login-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:26px;
}
.login-card h2{
  margin:0;
  color:#111827;
  font-size:28px;
  font-weight:900;
  letter-spacing:0;
}
.login-card .hint{
  margin-top:6px;
  color:#6b7c93;
  font-size:13px;
  line-height:1.5;
}
.field{
  margin-top:16px;
}
.field label{
  display:block;
  margin:0 0 8px;
  color:#344256;
  font-size:13px;
  font-weight:800;
}
.inp{
  width:100%;
  height:48px;
  padding:0 14px;
  border:1px solid #d6e2ee;
  border-radius:12px;
  background:#fff;
  color:#111827;
  font-size:14px;
  outline:none;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.inp:focus{
  border-color:#005BAC;
  box-shadow:0 0 0 4px rgba(0,91,172,.12);
}
.toggle-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin:18px 0;
  padding:16px;
  border:1px solid #d6e2ee;
  border-radius:14px;
  background:#f7fbff;
}
.t-tt{
  color:#111827;
  font-size:14px;
  font-weight:900;
}
.t-ds{
  margin-top:4px;
  color:#6b7c93;
  font-size:12px;
}
/* 로그인 기본 버튼: refit 규격(높이 44px, 모서리 12px)을 유지한다. */
/* 버튼 크기와 상태 색상은 공통 버튼 규칙과 일치시킨다. */
.auth-submit{
  height:44px;
  min-height:44px;
  border-radius:12px;
  font-weight:700;
  box-shadow:none;
}
.auth-submit:hover,
.auth-submit:focus{
  background:#043A70;
  color:#fff;
}
.auth-submit i{
  color:#fff;
}
.auth-links{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-top:16px;
  font-size:13px;
  font-weight:800;
}
.auth-links a{
  color:#005BAC;
  text-decoration:none;
}
.auth-links a:hover{
  color:#043A70;
}
.privacy-strip{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px 14px;
  border:1px solid rgba(0,91,172,.14);
  border-radius:12px;
  background:rgba(0,91,172,.08);
  color:#005BAC;
  font-size:12px;
  font-weight:800;
  line-height:1.5;
}
.privacy-strip i{
  color:#005BAC;
}
@media (max-width:991.98px){
  .login-wrap{
    grid-template-columns:1fr;
    background:#f4f8fc;
  }
  .login-visual{
    min-height:auto;
    padding:34px 24px;
  }
  .login-visual h1{
    font-size:34px;
  }
  .metrics{
    grid-template-columns:1fr;
  }
  .login-panel{
    min-height:auto;
    padding:24px;
  }
  .login-card{
    padding:26px;
  }
}

/* ---------- Remember ID ---------- */
.remember-row{
  display:flex;
  align-items:center;
  gap:9px;
  margin:2px 0 14px;
  cursor:pointer;
  user-select:none;
}
.remember-row input{position:absolute;opacity:0;width:0;height:0}
.remember-row .box{
  width:19px;
  height:19px;
  display:inline-grid;
  place-items:center;
  border:1.5px solid var(--border);
  border-radius:6px;
  background:var(--surface);
  color:transparent;
  font-size:13px;
  transition:background .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease);
}
.remember-row input:checked + .box{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.remember-row input:focus-visible + .box{box-shadow:0 0 0 3px var(--primary-soft)}
.remember-row .txt{font-size:13px;font-weight:600;color:var(--text-2)}
.remember-row:hover .txt{color:var(--text)}

/* 회원가입 보조 버튼: 기본 버튼의 크기와 정렬을 공유한다. */
.auth-signup{justify-content:center}

/* ---------- 2FA Layer Popup ----------
   로그인 카드와 동일한 간격, 모서리 및 버튼 규격을 사용한다. */
.twofa-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:1080;
  background:rgba(8,13,26,.46);
  backdrop-filter:blur(4px);
  align-items:center;
  justify-content:center;
  padding:24px;
}
.twofa-backdrop.show{display:flex}
.twofa-modal{
  position:relative;
  width:min(400px,100%);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-lg);
  padding:26px 22px 22px;
  animation:fadeUp .28s var(--ease) both;
}
.twofa-close{position:absolute;top:14px;right:14px}
.twofa-head{text-align:center;margin-bottom:18px}
.twofa-ic{
  width:46px;height:46px;
  display:inline-grid;place-items:center;
  border-radius:12px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:21px;
  margin-bottom:12px;
}
.twofa-head h3{margin:0 0 6px;font-size:18px;font-weight:800}
.twofa-head p{margin:0;font-size:12.5px;color:var(--text-2)}
.twofa-email{
  display:inline-block;
  margin-top:10px;
  padding:5px 12px;
  border-radius:999px;
  background:var(--surface-2);
  border:1px solid var(--border-soft);
  font-size:12px;
  font-weight:700;
  color:var(--text-2);
}
.otp-row{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:0 0 18px;
}
.otp{
  width:44px;
  height:52px;
  border:1.5px solid var(--border);
  border-radius:12px;
  background:var(--surface-2);
  text-align:center;
  font-size:20px;
  font-weight:800;
  color:var(--text);
  transition:border-color .15s var(--ease),background .15s var(--ease),box-shadow .15s var(--ease);
}
.otp:focus{
  outline:none;
  border-color:var(--primary);
  background:var(--surface);
  box-shadow:0 0 0 3px var(--primary-soft);
}
.twofa-links{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
}
.twofa-links .btn-link{font-size:12.5px}
@media (max-width:429.98px){
  .otp{width:38px;height:46px;font-size:18px}
}

/* ---------- Auth Layer (怨듭슜: ?뚯썝媛?끒룸퉬諛踰덊샇李얘린) ---------- */
.auth-pop-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:1080;
  background:rgba(8,13,26,.46);
  backdrop-filter:blur(4px);
  align-items:center;
  justify-content:center;
  padding:24px;
  overflow-y:auto;
  scrollbar-width:none;
}
.auth-pop-backdrop.show{display:flex}
.auth-pop{
  position:relative;
  width:min(400px,100%);
  max-height:92vh;
  overflow-y:auto;
  scrollbar-width:none;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-lg);
  padding:26px 22px 22px;
  animation:fadeUp .28s var(--ease) both;
}
.pop-close{position:absolute;top:14px;right:14px}
.pop-head{text-align:center;margin-bottom:18px}
.pop-ic{
  width:46px;height:46px;
  display:inline-grid;place-items:center;
  border-radius:12px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:21px;
  margin-bottom:12px;
}
.pop-head h3{margin:0 0 6px;font-size:18px;font-weight:800}
.pop-head p{margin:0;font-size:12.5px;color:var(--text-2)}

/* ?섎떒 留곹겕??踰꾪듉 (auth-links ?대?) */
.auth-links .link-btn{
  border:0;
  background:none;
  padding:0;
  font-size:13px;
  font-weight:700;
  color:var(--primary);
  cursor:pointer;
}
.auth-links .link-btn:hover{text-decoration:underline;text-underline-offset:3px}
.auth-links .link-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--primary-soft);border-radius:6px}

/* RBD_APS_DESIGN_V51_20260704: keep RBD remember-login-id markup compatible with APS auth design */
.remember-id-row{
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  margin:10px 0 2px;
  color:var(--text-2,#344256);
  font-size:13px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.remember-id-row input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--primary,#005BAC);
}
.remember-id-row span{padding-top:1px}
