@charset "UTF-8";

:root {
  --login-bg: #070b14;
  --login-ink: #eef2ff;
  --login-muted: #929db4;
  --login-panel: #0b111f;
  --login-panel-strong: #111827;
  --login-border: #303b52;
  --login-line: #202a3d;
  --login-primary: #8b5cf6;
  --login-primary-strong: #5b3fbd;
  --login-accent: #67e8f9;
  --login-danger: #fb7185;
  --login-success: #34d399;
  --login-shadow: 12px 12px 0 rgba(2, 5, 12, 0.68), 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--login-bg);
  color: var(--login-ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(430px, 0.74fr);
  overflow: hidden;
  background: #070b14;
}

.login-brand {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid rgba(139, 92, 246, 0.28);
  background:
    radial-gradient(circle at 74% 42%, rgba(139, 92, 246, 0.18), transparent 34%),
    linear-gradient(145deg, #151c31 0%, #0a0f1c 58%, #050811 100%);
  color: #fff;
}

.login-brand::before,
.login-brand::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
}

.login-brand::before {
  background:
    linear-gradient(90deg, rgba(5, 8, 17, 0.93) 0%, rgba(5, 8, 17, 0.60) 34%, rgba(5, 8, 17, 0.08) 70%, rgba(5, 8, 17, 0.20) 100%),
    linear-gradient(180deg, rgba(5, 8, 17, 0.38), transparent 24%, transparent 72%, rgba(5, 8, 17, 0.72));
}

.login-brand::after {
  inset: 18px;
  border: 1px solid rgba(163, 177, 208, 0.13);
  background:
    linear-gradient(#a78bfa, #a78bfa) 0 0 / 32px 2px no-repeat,
    linear-gradient(#a78bfa, #a78bfa) 0 0 / 2px 32px no-repeat,
    linear-gradient(#67e8f9, #67e8f9) 100% 100% / 32px 2px no-repeat,
    linear-gradient(#67e8f9, #67e8f9) 100% 100% / 2px 32px no-repeat;
}

.login-office-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.login-office-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.96) contrast(1.04);
}

.login-office-grid,
.login-office-vignette,
.login-office-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-office-grid {
  z-index: 2;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.28) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to right, transparent 4%, #000 52%, transparent 96%);
}

.login-office-vignette {
  z-index: 2;
  box-shadow: inset 0 0 160px rgba(1, 3, 9, 0.78);
  background: radial-gradient(circle at 66% 47%, transparent 23%, rgba(3, 6, 14, 0.12) 56%, rgba(3, 6, 14, 0.52) 100%);
}

.login-office-scan {
  z-index: 2;
  opacity: 0.22;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(180, 190, 220, 0.08) 4px);
  mix-blend-mode: soft-light;
}

.login-office-fallback {
  position: absolute;
  top: 50%;
  left: 66%;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid #4c5870;
  background: rgba(8, 12, 23, 0.88);
  color: #aab5c9;
  font: 900 10px/1.2 monospace;
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%);
}

.login-brand__inner {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(34px, 4.2vw, 72px);
  pointer-events: none;
}

.login-logo {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

.login-logo img {
  display: none;
}

.login-logo__mark {
  position: relative;
  width: 38px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.38));
}

.login-logo__mark i {
  position: absolute;
  width: 7px;
  height: 34px;
  background: #f8fafc;
  transform: skewY(42deg) rotate(-45deg);
}

.login-logo__mark i:nth-child(1) { left: 5px; }
.login-logo__mark i:nth-child(2) { left: 15px; height: 27px; background: #b9b0ff; }
.login-logo__mark i:nth-child(3) { right: 6px; height: 22px; background: #67e8f9; }

.login-logo__word {
  font: 900 15px/1 monospace;
  letter-spacing: 0.16em;
}

.login-hero {
  width: min(570px, 56%);
  margin: auto 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 0 11px;
  border: 1px solid rgba(167, 139, 250, 0.56);
  border-radius: 2px;
  background: rgba(12, 17, 31, 0.76);
  box-shadow: 3px 3px 0 rgba(5, 7, 13, 0.75);
  color: #d9d4ff;
  font: 900 10px/1 monospace;
  letter-spacing: 0.14em;
}

.login-kicker i,
.login-card__eyebrow i,
.login-office-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.login-hero h1 {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(35px, 4.3vw, 67px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.login-hero h1 em {
  color: #b9b0ff;
  font-style: normal;
}

.login-hero p {
  width: min(520px, 100%);
  margin: 0;
  color: #b7c0d3;
  font-size: 14px;
  line-height: 1.76;
  font-weight: 650;
  word-break: keep-all;
}

.login-security-grid {
  width: min(760px, 70%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.login-security-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 2px;
  background: rgba(9, 14, 26, 0.78);
  box-shadow: 4px 4px 0 rgba(2, 5, 12, 0.58);
  backdrop-filter: blur(9px);
}

.login-security-card small {
  color: #8b9ab7;
  font: 900 8px/1.2 monospace;
  letter-spacing: 0.12em;
}

.login-security-card strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.login-security-card span {
  color: #8996ad;
  font-size: 10px;
  line-height: 1.55;
  font-weight: 700;
}

.login-office-status {
  position: absolute;
  right: 32px;
  bottom: 30px;
  z-index: 6;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #e7ecf8;
  pointer-events: none;
}

.login-office-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 900 9px/1.2 monospace;
  letter-spacing: 0.12em;
}

.login-office-status em {
  color: #6f7d97;
  font: 800 8px/1.2 monospace;
  font-style: normal;
  letter-spacing: 0.08em;
}

.login-panel {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 60px);
  overflow: hidden;
  background:
    linear-gradient(rgba(139, 92, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, #151d30 0%, #0b111f 54%, #070b14 100%);
  background-size: 26px 26px, 26px 26px, auto;
}

.login-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.14), transparent 24%),
    linear-gradient(315deg, rgba(103, 232, 249, 0.08), transparent 22%);
  pointer-events: none;
  content: "";
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: 30px;
  border: 2px solid #47536b;
  border-radius: 2px;
  background: rgba(13, 19, 33, 0.94);
  box-shadow: var(--login-shadow), inset 0 0 0 2px rgba(30, 41, 59, 0.84);
  backdrop-filter: blur(18px);
}

.login-card::before,
.login-card::after {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  content: "";
}

.login-card::before {
  top: -2px;
  left: -2px;
  border-top: 3px solid #a78bfa;
  border-left: 3px solid #a78bfa;
}

.login-card::after {
  right: -2px;
  bottom: -2px;
  border-right: 3px solid #67e8f9;
  border-bottom: 3px solid #67e8f9;
}

.login-card__head {
  margin-bottom: 24px;
}

.login-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a78bfa;
  font: 900 9px/1.2 monospace;
  letter-spacing: 0.15em;
}

.login-card__head h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.login-card__head p {
  margin: 0;
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 650;
}

.login-message {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
}

.login-message--success {
  border: 1px solid rgba(52, 211, 153, 0.38);
  background: rgba(52, 211, 153, 0.09);
  color: #6ee7b7;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.login-field > span:first-child {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
}

.login-field input {
  width: 100%;
  height: 49px;
  padding: 0 13px;
  border: 2px solid #3b465e;
  border-radius: 2px;
  outline: none;
  background: #f1f5f9;
  box-shadow: 4px 4px 0 #050812;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-field input:focus {
  border-color: #a78bfa;
  box-shadow: 4px 4px 0 #5b3fbd;
  transform: translate(-1px, -1px);
}

.login-field input::placeholder {
  color: #8490a4;
  font-weight: 650;
}

.login-password-wrap {
  position: relative;
  display: block;
}

.login-password-wrap input {
  padding-right: 70px;
}

.login-password-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 32px;
  min-width: 48px;
  border: 1px solid #aab2c0;
  border-radius: 2px;
  background: #dfe5ee;
  color: #44318e;
  font-size: 11px;
  font-weight: 900;
}

.login-options {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #9facbf;
  font-size: 12px;
  font-weight: 800;
}

.login-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--login-primary);
}

.login-join-disabled {
  color: #7d899e;
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

.login-submit {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 2px solid #b9b0ff;
  border-radius: 2px;
  background: linear-gradient(135deg, #7451dd, #4c369f);
  box-shadow: 5px 5px 0 #050812;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit i {
  font: 900 20px/1 monospace;
  font-style: normal;
}

.login-submit:hover {
  filter: brightness(1.08);
  box-shadow: 7px 7px 0 #050812;
  transform: translate(-2px, -2px);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  filter: grayscale(0.25);
  transform: none;
}

.login-note {
  display: flex;
  gap: 10px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--login-line);
  color: #7f8ba0;
  font-size: 10px;
  line-height: 1.6;
}

.login-note strong {
  flex: 0 0 auto;
  color: #67e8f9;
  font: 900 9px/1.6 monospace;
  letter-spacing: 0.08em;
}

.login-panel__meta {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #56627a;
  font: 800 8px/1 monospace;
  letter-spacing: 0.1em;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 14, 0.76);
  backdrop-filter: blur(8px);
}

.login-overlay.is-visible {
  display: flex;
}

.login-overlay__card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  border: 2px solid #536078;
  border-radius: 2px;
  background: #111827;
  box-shadow: 8px 8px 0 #03060d, inset 0 0 0 2px #202a3e;
  color: #fff;
  text-align: center;
}

.login-overlay__card strong {
  font-size: 18px;
  font-weight: 900;
}

.login-overlay__card span {
  color: #9aa7bd;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
}

.login-overlay__button {
  min-width: 86px;
  height: 36px;
  margin-top: 8px;
  border: 1px solid #a78bfa;
  border-radius: 2px;
  background: #6548c2;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.login-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(167, 139, 250, 0.2);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: login-spin 0.72s steps(8, end) infinite;
}

.login-error-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 113, 133, 0.42);
  border-radius: 2px;
  background: rgba(251, 113, 133, 0.11);
  color: var(--login-danger);
  font: 900 20px/1 monospace;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .login-page {
    grid-template-columns: minmax(0, 1.18fr) minmax(410px, 0.82fr);
  }

  .login-hero {
    width: min(560px, 72%);
  }

  .login-security-grid {
    width: min(700px, 84%);
  }
}

@media (max-width: 960px) {
  body {
    overflow: auto;
  }

  .login-page {
    min-height: 100%;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .login-brand,
  .login-brand__inner {
    min-height: 590px;
  }

  .login-brand {
    border-right: 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.28);
  }

  .login-hero {
    width: min(560px, 72%);
  }

  .login-security-grid {
    width: min(740px, 88%);
  }

  .login-panel {
    min-height: 650px;
  }
}

@media (max-width: 680px) {
  .login-brand,
  .login-brand__inner {
    min-height: 650px;
  }

  .login-brand__inner {
    padding: 28px 20px;
  }

  .login-brand::after {
    inset: 10px;
  }

  .login-office-scene {
    opacity: 0.76;
  }

  .login-hero {
    width: 100%;
    margin: 12px 0 auto;
  }

  .login-hero h1 {
    font-size: 36px;
  }

  .login-hero p {
    font-size: 12px;
  }

  .login-security-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .login-security-card {
    min-height: 76px;
  }

  .login-office-status {
    display: none;
  }

  .login-panel {
    min-height: 610px;
    padding: 38px 16px 54px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-join-disabled {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
