html,
body{
  margin:0;
  min-height:100%;
}

body.auth-page{
  min-height:100vh;
  background:#f4f8fc;
  font-family:NanumBarunGothic,"Nanum Gothic",NanumGothic,"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;
  font-size:13.5px;
  line-height:1.6;
}

.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-copy{
  display:flex;
  flex-direction:column;
  line-height:1.08;
}

.brand-copy strong{
  font-size:22px;
  font-weight:900;
  letter-spacing:0;
}

.brand-copy small{
  margin-top:7px;
  font-size:12px;
  font-weight:800;
  color:rgba(255,255,255,.72);
}

.maze-mark{
  width:52px;
  height:52px;
  border-radius:12px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  background:linear-gradient(145deg,#0067bd,#004f97);
  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-copy h1,
.login-visual h1{
  margin:0;
  color:#fff;
  font-size:clamp(38px,5vw,64px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:0;
  word-break:keep-all;
}

.login-copy p,
.login-visual p{
  max-width:660px;
  margin:22px 0 0;
  color:rgba(255,255,255,.80);
  font-size:16px;
  line-height:1.75;
  word-break:keep-all;
}

.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;
  word-break:keep-all;
}

.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;
  line-height:1.2;
}

.hint{
  margin-top:6px;
  color:#6b7c93;
  font-size:13px;
  line-height:1.5;
  word-break:keep-all;
}

.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;
  box-sizing:border-box;
  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;
  justify-content:space-between;
  gap:16px;
  margin:18px 0;
  padding:16px;
  border:1px solid #d6e2ee;
  border-radius:14px;
  background:#f7fbff;
}

.toggle-copy{
  min-width:0;
}

.t-tt{
  color:#111827;
  font-size:14px;
  font-weight:900;
}

.t-ds{
  margin-top:4px;
  color:#6b7c93;
  font-size:12px;
  word-break:keep-all;
}

.switch{
  position:relative;
  width:48px;
  height:28px;
  flex:0 0 auto;
}

.switch input{
  display:none;
}

.switch .sl{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#005BAC;
}

.switch .sl::after{
  content:"";
  position:absolute;
  width:22px;
  height:22px;
  right:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
}

.auth-submit{
  width:100%;
  height:44px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:12px;
  background:#0A6FBE;
  color:#fff;
  font-weight:800;
  text-decoration:none;
  box-shadow:none;
  cursor:pointer;
}

.auth-submit:hover,
.auth-submit:focus{
  background:#043A70;
  color:#fff;
}

.auth-submit i{
  color:#fff;
}

.auth-submit-link{
  margin-top:14px;
}

.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;
}


/* APS login card rendering contract. auth.css is intentionally loaded after rc.css. */
.login-card-head .hint{
  margin:6px 0 22px;
  font-size:13px;
  line-height:19.5px;
}

#loginForm .field{
  margin:0;
  font-size:13.5px;
  line-height:21.6px;
}

#loginForm .field + .field{
  margin-top:14px;
}

#loginForm .field label{
  margin:0 0 7px;
  font-size:13px;
  line-height:20.8px;
}

#loginForm .inp{
  height:48px;
  padding:0 14px;
  border-radius:12px;
  line-height:22.4px;
}

#loginForm .auth-submit{
  height:42px;
  min-height:42px;
  margin-top:8px;
  padding:0 14px;
  border-radius:10px;
  font-family:inherit;
  font-size:14px;
  font-weight:800;
  line-height:14px;
}

.auth-links{
  margin-top:16px;
  line-height:18.2px;
}

.privacy-strip{
  gap:10px;
  padding:13px 14px;
  font-weight:800;
  line-height:18px;
}

.maze-mark.small{
  box-sizing:border-box;
  padding:0;
}

.privacy-strip{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:16px;
  padding:12px;
  border:1px solid rgba(0,91,172,.14);
  border-radius:12px;
  background:#f7fbff;
  color:#6b7c93;
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

.privacy-strip i{
  color:#005BAC;
  margin-top:1px;
}

.mode-note{
  margin:0;
  color:#6b7c93;
  font-size:14px;
  line-height:1.7;
}

.toast-wrap{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:30;
}

@media(max-width:980px){
  .login-wrap{
    grid-template-columns:1fr;
    background:#f4f8fc;
  }

  .login-visual{
    min-height:auto;
    padding:34px 24px;
  }

  .login-copy h1,
  .login-visual h1{
    font-size:34px;
  }

  .metrics{
    grid-template-columns:1fr;
    max-width:none;
  }

  .login-panel{
    min-height:auto;
    padding:28px 18px;
  }
}

@media(max-width:560px){
  .brand-copy strong{
    font-size:20px;
  }

  .brand-copy small{
    font-size:11px;
  }

  .login-card{
    padding:26px 22px;
  }

  .login-card-head{
    align-items:flex-start;
  }

  .login-copy h1,
  .login-visual h1{
    font-size:30px;
  }
}
