:root {
  --gl-navy: #06152f;
  --gl-navy-2: #071f4d;
  --gl-blue: #2563eb;
  --gl-blue-2: #1d4ed8;
  --gl-cyan: #0ea5e9;
  --gl-sky: #38bdf8;
  --gl-mint: #2dd4bf;
  --gl-bg: #f3f8ff;
  --gl-card: #ffffff;
  --gl-line: #dbe7f5;
  --gl-text: #0f172a;
  --gl-muted: #64748b;
  --gl-danger: #dc2626;
  --gl-danger-bg: #fef2f2;
  --gl-shadow: 0 34px 100px rgba(15, 23, 42, 0.18);
  --gl-shadow-soft: 0 18px 46px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

body.gl-login-body {
  min-height: 100vh;
  color: var(--gl-text);
  font-family:
    Pretendard,
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 9% 11%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(45, 212, 191, 0.20), transparent 31%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #ecfbff 100%);
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.gl-bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.gl-bg-orb-a {
  width: 360px;
  height: 360px;
  left: -150px;
  top: -140px;
  background: rgba(37, 99, 235, 0.17);
}

.gl-bg-orb-b {
  width: 450px;
  height: 450px;
  right: -190px;
  bottom: -190px;
  background: rgba(45, 212, 191, 0.20);
}

.gl-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.gl-login-page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-login-shell {
  width: 100%;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 245, 0.94);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--gl-shadow);
  backdrop-filter: blur(22px);
}

.gl-login-visual {
  position: relative;
  overflow: hidden;
  padding: 38px 40px 42px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.27), transparent 34%),
    radial-gradient(circle at 0% 88%, rgba(56, 189, 248, 0.22), transparent 36%),
    linear-gradient(145deg, #041126 0%, #082f7a 45%, #1467d7 100%);
}

.gl-login-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  pointer-events: none;
}

.gl-login-visual::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.gl-visual-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.gl-visual-glow-a {
  width: 390px;
  height: 390px;
  left: -170px;
  bottom: -130px;
  background: rgba(45, 212, 191, 0.16);
}

.gl-visual-glow-b {
  width: 230px;
  height: 230px;
  right: 75px;
  bottom: 85px;
  background: rgba(96, 165, 250, 0.15);
  filter: blur(10px);
}

.gl-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gl-brand-mark {
  position: relative;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.gl-brand-mark-main {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.055em;
}

.gl-brand-mark-pulse {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gl-mint);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.16);
}

.gl-brand-title {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.gl-brand-sub {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.045em;
}

.gl-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-top: 84px;
}

.gl-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.gl-hero-chip span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gl-mint);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.14);
}

.gl-hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 4.8vw, 46px);
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: -0.075em;
}

.gl-hero-copy p {
  margin: 0;
  max-width: 470px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15.5px;
  line-height: 1.85;
  word-break: keep-all;
}

.gl-feature-stack {
  position: absolute;
  z-index: 2;
  left: 40px;
  right: 40px;
  bottom: 42px;
  display: grid;
  gap: 12px;
  max-width: 475px;
}

.gl-feature-card {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 17px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.108);
  border: 1px solid rgba(255, 255, 255, 0.155);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.13);
  backdrop-filter: blur(14px);
}

.gl-feature-card:nth-child(2) {
  margin-left: 22px;
}

.gl-feature-card:nth-child(3) {
  margin-left: 44px;
}

.gl-feature-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-size: 12px;
  font-weight: 1000;
}

.gl-feature-card strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.gl-feature-card p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.gl-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.985));
}

.gl-login-card {
  width: min(100%, 440px);
}

.gl-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #cfe0ff;
  background: #f3f8ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
}

.gl-panel-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.gl-login-card h2 {
  margin: 18px 0 8px;
  color: #081a3a;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.gl-login-desc {
  margin: 0 0 26px;
  color: var(--gl-muted);
  font-size: 14.5px;
  line-height: 1.72;
  word-break: keep-all;
}

.gl-login-form {
  display: grid;
  gap: 15px;
}

.gl-field {
  display: grid;
  gap: 8px;
}

.gl-field label {
  color: #334155;
  font-size: 13px;
  font-weight: 950;
}

.gl-input-wrap {
  position: relative;
}

.gl-input-wrap input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--gl-line);
  border-radius: 19px;
  padding: 0 76px 0 48px;
  background: #ffffff;
  color: var(--gl-text);
  font-size: 15px;
  font-weight: 750;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.gl-input-wrap input:focus {
  border-color: var(--gl-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.gl-input-wrap input::placeholder {
  color: #a0aec0;
  font-weight: 650;
}

.gl-input-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.gl-password-toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  min-width: 52px;
  border: none;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.gl-password-toggle:hover {
  background: #dbeafe;
}

.gl-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gl-remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.gl-remember-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gl-blue);
}

.gl-secure-text {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gl-login-btn {
  position: relative;
  width: 100%;
  height: 60px;
  margin-top: 4px;
  border: none;
  border-radius: 21px;
  background:
    linear-gradient(180deg, var(--gl-blue), var(--gl-blue-2));
  color: #ffffff;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.27);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.gl-login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 23px 44px rgba(37, 99, 235, 0.34);
}

.gl-login-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.gl-login-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: -4px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: gl-spin 0.8s linear infinite;
}

.gl-login-btn.is-loading .gl-login-spinner {
  display: inline-block;
}

.gl-message {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--gl-danger);
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}

.gl-mfa-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #f8fbff;
}

.gl-mfa-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.gl-mfa-desc {
  margin: 5px 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

#otpInput {
  width: 100%;
  height: 52px;
  border: 1px solid var(--gl-line);
  border-radius: 17px;
  padding: 0 15px;
  background: #ffffff;
  color: var(--gl-text);
  font-size: 15px;
  font-weight: 800;
  outline: none;
}

#otpInput:focus {
  border-color: var(--gl-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#confirmOtpBtn {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  border: none;
  border-radius: 17px;
  background: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.gl-footer {
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid #e5edf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.5;
}

.gl-footer p {
  margin: 0;
}

.gl-footer-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #2563eb, #0ea5e9);
  color: #ffffff;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.gl-error-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(4px);
}

.gl-error-card {
  position: relative;
  width: min(380px, 100%);
  padding: 30px 22px 24px;
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.gl-error-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gl-error-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: var(--gl-danger-bg);
  color: var(--gl-danger);
  font-size: 24px;
  font-weight: 1000;
}

#loginErrorMessage {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.65;
  word-break: keep-all;
  white-space: pre-line;
}

.gl-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(4px);
}

.gl-loading-card {
  width: min(340px, 100%);
  padding: 24px 22px 22px;
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.gl-loading-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  border-radius: 999px;
  border: 4px solid #e5edf8;
  border-top-color: var(--gl-blue);
  animation: gl-spin 0.85s linear infinite;
}

.gl-loading-text {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.45;
}

.gl-loading-sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

body.is-loading input,
body.is-loading .gl-login-btn {
  opacity: 0.75;
}

@keyframes gl-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .gl-login-page {
    width: min(100% - 22px, 720px);
    padding: 18px 0;
  }

  .gl-login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

  .gl-login-visual {
    min-height: 420px;
    padding: 28px 24px 30px;
  }

  .gl-login-visual::before {
    inset: 14px;
    border-radius: 24px;
  }

  .gl-hero-copy {
    margin-top: 52px;
  }

  .gl-feature-stack {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 30px;
  }

  .gl-feature-card:nth-child(2),
  .gl-feature-card:nth-child(3) {
    margin-left: 0;
  }

  .gl-login-panel {
    padding: 30px 22px 32px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
  }

  body.gl-login-body {
    background:
      radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.20), transparent 34%),
      linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
  }

  .gl-bg-orb,
  .gl-bg-grid {
    display: none;
  }

  .gl-login-page {
    width: 100%;
    min-height: 100dvh;
    padding: 0;
    align-items: stretch;
  }

  .gl-login-shell {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #f7fbff;
  }

  .gl-login-visual {
    min-height: auto;
    padding: 18px 16px 19px;
    border-radius: 0 0 24px 24px;
  }

  .gl-login-visual::before,
  .gl-login-visual::after,
  .gl-visual-glow {
    display: none;
  }

  .gl-brand-row {
    gap: 10px;
  }

  .gl-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .gl-brand-mark-main {
    font-size: 13px;
  }

  .gl-brand-title {
    font-size: 15px;
  }

  .gl-brand-sub {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .gl-hero-copy {
    margin-top: 20px;
  }

  .gl-hero-chip {
    min-height: 29px;
    padding: 0 11px;
    font-size: 10px;
  }

  .gl-hero-copy h1 {
    margin: 14px 0 9px;
    font-size: 30px;
    line-height: 1.08;
  }

  .gl-hero-copy p {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.55;
  }

  .gl-feature-stack {
    display: none;
  }

  .gl-login-panel {
    flex: 1;
    align-items: flex-start;
    padding: 18px 14px 24px;
    background: transparent;
  }

  .gl-login-card {
    width: 100%;
    padding: 20px 17px 17px;
    border: 1px solid #e5edf8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  }

  .gl-panel-kicker {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
  }

  .gl-login-card h2 {
    margin: 13px 0 7px;
    font-size: 24px;
    line-height: 1.23;
    letter-spacing: -0.055em;
  }

  .gl-login-desc {
    margin-bottom: 17px;
    font-size: 13px;
    line-height: 1.55;
  }

  .gl-login-form {
    gap: 12px;
  }

  .gl-field {
    gap: 6px;
  }

  .gl-field label {
    font-size: 12px;
  }

  .gl-input-wrap input {
    height: 52px;
    border-radius: 16px;
    padding-left: 43px;
    font-size: 14px;
  }

  .gl-input-icon {
    left: 15px;
    width: 17px;
    height: 17px;
  }

  .gl-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .gl-remember-row,
  .gl-secure-text {
    font-size: 12px;
  }

  .gl-login-btn {
    height: 54px;
    border-radius: 17px;
    font-size: 15px;
  }

  .gl-message {
    margin-top: 8px;
    font-size: 12px;
  }

  .gl-footer {
    margin-top: 17px;
    padding-top: 13px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    line-height: 1.45;
  }

  .gl-footer-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 14px;
  }

  .gl-mfa-box {
    padding: 13px;
    border-radius: 17px;
  }

  #otpInput,
  #confirmOtpBtn {
    height: 48px;
    border-radius: 15px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .gl-login-visual {
    padding: 16px 14px 17px;
  }

  .gl-hero-copy {
    margin-top: 16px;
  }

  .gl-hero-copy h1 {
    font-size: 27px;
  }

  .gl-hero-copy p {
    font-size: 12.5px;
  }

  .gl-login-panel {
    padding: 14px 12px 20px;
  }

  .gl-login-card {
    padding: 18px 15px 15px;
  }

  .gl-login-card h2 {
    font-size: 22px;
  }

  .gl-login-desc {
    font-size: 12.5px;
  }

  .gl-input-wrap input {
    height: 50px;
  }

  .gl-login-btn {
    height: 52px;
  }

  .gl-footer {
    grid-template-columns: 1fr;
  }

  .gl-footer-mark {
    display: none;
  }
}