/* Login-only styles. Shared application screens keep their existing styles. */
body.kdt-login-page {
  margin: 0;
  min-height: 100vh;
  padding: 0;
  color: #16304f;
  background: radial-gradient(ellipse at 8% 4%, #d8eaff 0, transparent 40%), radial-gradient(ellipse at 98% 100%, #ddf4f4 0, transparent 35%), #f0f7ff;
  font-family: 'Noto Sans KR', sans-serif;
}
.kdt-login, .kdt-login * { box-sizing: border-box; }
.kdt-login { min-height: calc(100svh - 44px); padding: 26px 28px 12px; display: flex; flex-direction: column; justify-content: center; }
.kdt-login__layout { width: min(1540px, 100%); min-height: min(780px, calc(100svh - 126px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(420px, 1fr); border: 1px solid #cddff3; border-radius: 30px; overflow: hidden; background: #f7fbff; box-shadow: 0 28px 80px #254e8020; }
.kdt-brand { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 44px 48px 28px; overflow: hidden; border-right: 1px solid #cddff3; background: radial-gradient(ellipse at 17% 0%, #e1f0ff 0, transparent 53%), linear-gradient(145deg, #fcfeff, #eaf5ff); }
.kdt-brand::after { content: ''; position: absolute; right: -210px; bottom: -330px; width: 620px; height: 620px; border-radius: 50%; border: 1px solid #dcecff; box-shadow: 0 0 0 60px #e4f1ff55; pointer-events: none; }
.kdt-brand__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.kdt-identity { display: flex; align-items: center; gap: 13px; }
.kdt-identity img { object-fit: contain; border-radius: 7px; flex-shrink: 0; mix-blend-mode: multiply; }
.kdt-identity strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.5; }
.kdt-identity span { display: block; margin-top: 2px; color: #6e86a3; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.kdt-system-label { flex-shrink: 0; padding: 7px 12px; border: 1px solid #b8e7db; border-radius: 20px; background: #e9f8f3; color: #21765e; font-size: 11px; font-weight: 700; }
.kdt-brand__content { position: relative; z-index: 1; margin-top: auto; padding-top: 62px; }
.kdt-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #2673de; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.kdt-eyebrow::before { content: ''; width: 29px; height: 2px; background: linear-gradient(90deg, #2869ff, #15c8bb); }
.kdt-brand h1 { margin: 0; color: #142e4d; font-size: clamp(30px, 3vw, 52px); font-weight: 900; letter-spacing: -.06em; line-height: 1.25; word-break: keep-all; }
.kdt-brand__description { margin: 14px 0 0; color: #627d9e; font-size: 13px; letter-spacing: .035em; }
.kdt-flow { display: flex; gap: 30px; list-style: none; padding: 0; margin: 22px 0 0; }
.kdt-flow li { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #d6e5f6; border-radius: 20px; background: #ffffffdf; font-size: 11px; font-weight: 700; box-shadow: 0 5px 14px #355d8910; }
.kdt-flow li + li::before { content: '→'; position: absolute; left: -23px; color: #8ba6c5; font-size: 18px; }
.kdt-flow li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: #2d6bf2; color: white; font-size: 9px; }
.kdt-flow li:nth-child(3) span { background: #10b7a7; }
.kdt-flow li:nth-child(4) span { background: #e9a620; }
.kdt-factory { position: relative; width: calc(100% + 32px); height: clamp(230px, 35vh, 380px); margin: 16px -16px 0; }
.kdt-factory canvas { width: 100%; height: 100%; display: block; opacity: 0; }
.kdt-factory__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.kdt-factory.is-3d-ready canvas { opacity: 1; }
.kdt-factory.is-3d-ready .kdt-factory__fallback { display: none; }
.kdt-brand__caption { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 24px; color: #6883a3; font-size: 11px; }
.kdt-brand__caption span { width: 5px; height: 5px; border-radius: 50%; background: #4190ed; }
.kdt-form-panel { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 42px; background: linear-gradient(160deg, #fafdff, #f0f7ff); }
.kdt-card { width: 100%; max-width: 500px; padding: 38px 40px; background: #ffffffed; border: 1px solid #cfdef2; border-radius: 26px; box-shadow: 0 24px 52px #20476f20; }
.kdt-card__brand { margin-bottom: 26px; }
.kdt-card__heading { margin-bottom: 25px; }
.kdt-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #d4e0ff; border-radius: 20px; background: #f2f6ff; color: #2866cf; font-size: 10px; font-weight: 700; }
.kdt-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4084ff; }
.kdt-card h2 { margin: 13px 0 7px; color: #152d4c; font-size: 40px; font-weight: 900; letter-spacing: -.055em; line-height: 1.25; }
.kdt-card__heading p { margin: 0; color: #637b99; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.kdt-field { margin-bottom: 16px; }
.kdt-field__label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.kdt-field__label label { margin: 0; color: #304b6c; font-size: 12px; font-weight: 700; }
.kdt-field__label span { color: #3474d6; font-size: 10px; font-weight: 600; }
.kdt-field__input { position: relative; }
.kdt-field__input svg { position: absolute; left: 16px; top: 18px; width: 17px; height: 17px; stroke: #819cbc; stroke-width: 1.7; pointer-events: none; }
.kdt-field__input input { display: block; width: 100%; height: 54px; margin: 0; padding: 0 16px 0 44px; border: 1px solid #cfdef0; border-radius: 13px; color: #22334c; background: #fff; font-family: inherit; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.kdt-field__input #kdt-login-password { padding-right: 60px; }
.kdt-field__input input::placeholder { color: #8b9db4; font-size: 12px; }
.kdt-field__input input:focus { outline: none; border-color: #4e87f6; box-shadow: 0 0 0 4px #3a78f414; }
.kdt-password-toggle { position: absolute; right: 7px; top: 7px; min-width: 46px; height: 40px; padding: 0 8px; border: 0; border-radius: 8px; color: #5d7697; background: transparent; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.kdt-password-toggle:hover { color: #225bcc; background: #edf4ff; }
.kdt-options { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 5px 0 19px; font-size: 11px; }
.kdt-options label { display: flex; align-items: center; gap: 8px; margin: 0; color: #526c8b; cursor: pointer; }
.kdt-options input[type="checkbox"] { position: static; left: auto; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #2867ea; cursor: pointer; }
.kdt-options > span { color: #778daa; font-size: 10px; }
.kdt-submit { width: 100%; min-height: 53px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(105deg, #2059e8, #337ef5); box-shadow: 0 12px 24px #2665e828; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.kdt-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 28px #2665e83b; }
.kdt-login button:focus-visible, .kdt-options input:focus-visible { outline: 3px solid #4585ed; outline-offset: 3px; }
.kdt-card__footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e0e9f5; text-align: center; color: #7187a3; font-size: 10px; }
.kdt-card__footer strong { color: #516c90; }
.kdt-copyright { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 8px; max-width: 1540px; margin: 14px auto 0; color: #6882a0; font-size: 10px; line-height: 1.7; text-align: center; }
body.kdt-login-page > .navbar { min-height: 32px; background: transparent; border: 0; box-shadow: none; }
body.kdt-login-page > .navbar .navbar-text { padding: 4px 0; color: #6c84a1; font-size: 10px; }
body.kdt-login-page > .navbar .navbar-toggler { font-size: 10px; padding: 4px; }
@media (max-width: 1200px) {
  .kdt-login { padding: 20px; }
  .kdt-login__layout { grid-template-columns: minmax(0, 1.15fr) minmax(370px, 1fr); }
  .kdt-brand { padding: 32px; }
  .kdt-system-label { display: none; }
  .kdt-form-panel { padding: 28px; }
  .kdt-card { padding: 30px; }
  .kdt-flow { gap: 25px; }
  .kdt-flow li { padding: 5px 8px; }
}
@media (max-width: 840px) {
  .kdt-login { min-height: calc(100svh - 34px); padding: 20px 16px 10px; }
  .kdt-login__layout { display: block; min-height: 0; max-width: 560px; border-radius: 24px; }
  .kdt-brand { display: none; }
  .kdt-form-panel { padding: 28px; }
  .kdt-card { max-width: none; }
  .kdt-card__heading p { font-size: 13px; }
  .kdt-field__input input { font-size: 16px; }
}
@media (max-width: 440px) {
  .kdt-login { padding: 12px 12px 8px; }
  .kdt-form-panel { padding: 14px; }
  .kdt-card { padding: 26px 20px; border-radius: 18px; }
  .kdt-card h2 { font-size: 34px; }
  .kdt-options > span { display: none; }
  .kdt-copyright { font-size: 9px; }
}
@media (max-height: 760px) and (min-width: 841px) {
  .kdt-brand__content { padding-top: 28px; }
  .kdt-brand__caption { padding-top: 8px; }
  .kdt-card { padding-top: 26px; padding-bottom: 26px; }
  .kdt-card__brand { margin-bottom: 18px; }
  .kdt-factory { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .kdt-login *, .kdt-login *::before { transition: none !important; }
}
