/* 관리자 포털 로그인 — 라이트 / 다크 · 반응형 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --al-font: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;

  --al-form-bg: #eef2f8;
  --al-form-bg-accent: #e4eaf4;
  --al-form-glow: rgba(79, 70, 229, 0.1);
  --al-surface: #ffffff;
  --al-surface-border: rgba(15, 23, 42, 0.08);
  --al-surface-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 48px -24px rgba(79, 70, 229, 0.22),
    0 8px 24px -16px rgba(15, 23, 42, 0.12);
  --al-text: #0f172a;
  --al-muted: #475569;
  --al-soft: #64748b;
  --al-input-bg: #f8fafc;
  --al-input-border: #dbe3ef;
  --al-input-focus: #4f46e5;
  --al-ring: rgba(79, 70, 229, 0.16);
  --al-btn-from: #4f46e5;
  --al-btn-to: #4338ca;
  --al-btn-hover-from: #6366f1;
  --al-btn-hover-to: #4f46e5;
  --al-btn-shadow: 0 14px 28px -12px rgba(79, 70, 229, 0.45);
  --al-settings-bg: rgba(255, 255, 255, 0.92);
  --al-settings-border: rgba(15, 23, 42, 0.1);
  --al-settings-icon: #64748b;
  --al-tab-track: #e8eef6;
  --al-tab-on-bg: #ffffff;
  --al-tab-on-fg: #1e293b;
  --al-passkey-from: #312e81;
  --al-passkey-to: #4f46e5;
  --al-passkey-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.4);
  --al-alert-info-bg: #eff6ff;
  --al-alert-info-border: #bfdbfe;
  --al-alert-info-text: #1e40af;
  --al-alert-warn-bg: #fffbeb;
  --al-alert-warn-border: #fde68a;
  --al-alert-warn-text: #92400e;
  --al-autofill: #f8fafc;

  --al-brand-fg: #1e1b4b;
  --al-brand-muted: #4338ca;
  --al-brand-faint: #64748b;
  --al-brand-name: #0f172a;
  --al-brand-chip-bg: rgba(79, 70, 229, 0.08);
  --al-brand-chip-border: rgba(79, 70, 229, 0.22);
  --al-brand-chip-dot: #6366f1;
  --al-brand-icon-bg: rgba(79, 70, 229, 0.1);
  --al-brand-icon-border: rgba(79, 70, 229, 0.16);
  --al-brand-icon: #4f46e5;
  --al-brand-item: #334155;
  --al-brand-base-0: #eef2ff;
  --al-brand-base-1: #e0e7ff;
  --al-brand-base-2: #c7d2fe;
  --al-orb-a: rgba(99, 102, 241, 0.28);
  --al-orb-b: rgba(129, 140, 248, 0.22);
  --al-orb-c: rgba(165, 180, 252, 0.28);
  --al-grid: rgba(79, 70, 229, 0.1);
}

html.dark,
html[data-theme="dark"],
html[data-admin-theme="dark"],
.dark {
  --al-form-bg: #070b14;
  --al-form-bg-accent: #0c1220;
  --al-form-glow: rgba(99, 102, 241, 0.16);
  --al-surface: rgba(15, 23, 42, 0.88);
  --al-surface-border: rgba(129, 140, 248, 0.16);
  --al-surface-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 56px -28px rgba(0, 0, 0, 0.7);
  --al-text: #f1f5f9;
  --al-muted: #94a3b8;
  --al-soft: #64748b;
  --al-input-bg: rgba(2, 6, 23, 0.55);
  --al-input-border: #334155;
  --al-input-focus: #818cf8;
  --al-ring: rgba(129, 140, 248, 0.22);
  --al-btn-from: #6366f1;
  --al-btn-to: #4f46e5;
  --al-btn-hover-from: #818cf8;
  --al-btn-hover-to: #6366f1;
  --al-btn-shadow: 0 14px 32px -12px rgba(99, 102, 241, 0.42);
  --al-settings-bg: rgba(15, 23, 42, 0.88);
  --al-settings-border: rgba(148, 163, 184, 0.18);
  --al-settings-icon: #94a3b8;
  --al-tab-track: rgba(30, 41, 59, 0.9);
  --al-tab-on-bg: #0f172a;
  --al-tab-on-fg: #f8fafc;
  --al-passkey-from: #1e1b4b;
  --al-passkey-to: #4f46e5;
  --al-passkey-shadow: 0 12px 28px -12px rgba(99, 102, 241, 0.45);
  --al-alert-info-bg: rgba(30, 58, 138, 0.28);
  --al-alert-info-border: rgba(59, 130, 246, 0.35);
  --al-alert-info-text: #bfdbfe;
  --al-alert-warn-bg: rgba(120, 53, 15, 0.35);
  --al-alert-warn-border: rgba(245, 158, 11, 0.35);
  --al-alert-warn-text: #fde68a;
  --al-autofill: #0f172a;

  --al-brand-fg: #e0e7ff;
  --al-brand-muted: rgba(199, 210, 254, 0.82);
  --al-brand-faint: rgba(165, 180, 252, 0.42);
  --al-brand-name: #ffffff;
  --al-brand-chip-bg: rgba(255, 255, 255, 0.08);
  --al-brand-chip-border: rgba(255, 255, 255, 0.16);
  --al-brand-chip-dot: #a5b4fc;
  --al-brand-icon-bg: rgba(255, 255, 255, 0.08);
  --al-brand-icon-border: rgba(255, 255, 255, 0.1);
  --al-brand-icon: #a5b4fc;
  --al-brand-item: rgba(224, 231, 255, 0.88);
  --al-brand-base-0: #0f172a;
  --al-brand-base-1: #1e1b4b;
  --al-brand-base-2: #312e81;
  --al-orb-a: rgba(99, 102, 241, 0.42);
  --al-orb-b: rgba(51, 65, 85, 0.38);
  --al-orb-c: rgba(167, 139, 250, 0.22);
  --al-grid: rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.admin-login-root {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

body.admin-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--al-font);
  color: var(--al-text);
  background: var(--al-form-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
  transition: background-color 0.35s ease, color 0.35s ease;
}

html.dark body.admin-login,
html[data-theme="dark"] body.admin-login,
html[data-admin-theme="dark"] body.admin-login {
  color-scheme: dark;
}

.al-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .al-shell {
    flex-direction: row;
  }
}

/* ===== Brand panel ===== */
.al-brand {
  position: relative;
  overflow: hidden;
  color: var(--al-brand-fg);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, var(--al-orb-a) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 82%, var(--al-orb-b) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 58% 8%, var(--al-orb-c) 0%, transparent 48%),
    linear-gradient(152deg, var(--al-brand-base-0) 0%, var(--al-brand-base-1) 42%, var(--al-brand-base-2) 100%);
}

@media (min-width: 1024px) {
  .al-brand {
    display: flex;
    width: 44%;
    max-width: 560px;
    min-height: 100vh;
    min-height: 100dvh;
    flex-shrink: 0;
  }
}

.al-brand__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--al-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--al-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 40% 45%, #000 20%, transparent 75%);
  opacity: 0.9;
  animation: al-grid-drift 28s linear infinite;
}

.al-brand__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  will-change: transform;
}

.al-brand__orb--a {
  width: 180px;
  height: 180px;
  top: 12%;
  left: 8%;
  background: var(--al-orb-a);
  animation: al-orb-float 9s ease-in-out infinite;
}

.al-brand__orb--b {
  width: 240px;
  height: 240px;
  bottom: 10%;
  right: 4%;
  background: var(--al-orb-b);
  animation: al-orb-float 12s ease-in-out infinite reverse;
  animation-delay: -3s;
}

.al-brand__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: al-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  min-width: 0;
}

@media (min-width: 1024px) {
  .al-brand__content {
    padding: 3.25rem 3rem;
  }
}

.al-brand__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--al-brand-chip-bg);
  border: 1px solid var(--al-brand-chip-border);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  margin: 0 0 1.75rem;
  color: var(--al-brand-fg);
}

.al-brand__chip-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--al-brand-chip-dot);
  animation: al-pulse 2s ease-in-out infinite;
}

.al-brand__org {
  margin: 0 0 1.15rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--al-brand-name);
}

.al-brand__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--al-brand-name);
  text-wrap: balance;
}

.al-brand__lead {
  margin: 0;
  max-width: 24rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--al-brand-muted);
}

.al-brand__sub {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--al-brand-faint);
}

.al-brand__list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.al-brand__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--al-brand-item);
  min-width: 0;
}

.al-brand__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: var(--al-brand-icon-bg);
  border: 1px solid var(--al-brand-icon-border);
  color: var(--al-brand-icon);
}

.al-brand__foot {
  position: relative;
  z-index: 1;
  padding: 0 3rem 2rem;
  font-size: 0.75rem;
  color: var(--al-brand-faint);
}

/* ===== Form panel ===== */
.al-form-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding: 3.75rem max(1.15rem, env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom)) max(1.15rem, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse 70% 48% at 92% 0%, var(--al-form-glow) 0%, transparent 55%),
    linear-gradient(180deg, var(--al-form-bg) 0%, var(--al-form-bg-accent) 100%);
}

@media (min-width: 640px) {
  .al-form-panel {
    padding: 3.5rem 2.25rem 2.25rem;
  }
}

@media (min-width: 1024px) {
  .al-form-panel {
    padding: 3rem;
  }
}

.al-settings {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  border: 1px solid var(--al-settings-border);
  background: var(--al-settings-bg);
  color: var(--al-settings-icon);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.al-settings:hover {
  color: var(--al-input-focus);
  border-color: var(--al-input-focus);
  transform: translateY(-1px);
}

.al-settings:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--al-ring);
}

.al-form-wrap {
  width: 100%;
  max-width: min(26.25rem, calc(100vw - 2rem));
  min-width: 0;
  animation: al-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.al-mobile-brand {
  text-align: center;
  margin: 0 2.5rem 1.35rem;
}

.al-mobile-brand__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.22);
}

html.dark .al-mobile-brand__chip,
html[data-theme="dark"] .al-mobile-brand__chip {
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.14);
  border-color: rgba(129, 140, 248, 0.28);
}

.al-mobile-brand__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--al-text);
}

.al-mobile-brand__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--al-soft);
}

@media (min-width: 1024px) {
  .al-mobile-brand {
    display: none;
  }
}

.al-card {
  background: var(--al-surface);
  border: 1px solid var(--al-surface-border);
  border-radius: 1.35rem;
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: var(--al-surface-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-width: 0;
}

@media (min-width: 640px) {
  .al-card {
    padding: 2.1rem 2rem;
  }
}

.al-card__head {
  margin-bottom: 1.35rem;
}

.al-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--al-text);
}

.al-card__desc {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--al-muted);
}

.al-alert {
  border-radius: 0.9rem;
  border: 1px solid;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
}

.al-alert--info {
  background: var(--al-alert-info-bg);
  border-color: var(--al-alert-info-border);
  color: var(--al-alert-info-text);
}

.al-alert--warn {
  background: var(--al-alert-warn-bg);
  border-color: var(--al-alert-warn-border);
  color: var(--al-alert-warn-text);
}

.al-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.28rem;
  margin: 0 0 1.2rem;
  background: var(--al-tab-track);
  border-radius: 0.8rem;
  min-width: 0;
}

.al-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 0.6rem;
  padding: 0.62rem 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--al-soft);
  cursor: pointer;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.al-tab:hover {
  color: var(--al-text);
}

.al-tab.is-active {
  background: var(--al-tab-on-bg);
  color: var(--al-tab-on-fg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html.dark .al-tab.is-active,
html[data-theme="dark"] .al-tab.is-active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.al-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-width: 0;
}

.al-field {
  min-width: 0;
}

.al-field > label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--al-text);
  margin-bottom: 0.4rem;
}

.al-field__control {
  position: relative;
  min-width: 0;
}

.al-field__icon {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--al-soft);
  pointer-events: none;
  transition: color 0.2s;
}

.al-field__control:focus-within .al-field__icon {
  color: var(--al-input-focus);
}

.al-input,
.al-field input[type="text"],
.al-field input[type="password"],
.al-field input[name="login"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 3rem;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--al-input-border);
  background: var(--al-input-bg);
  color: var(--al-text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.al-input--password,
.al-field input[type="password"] {
  padding-right: 3rem;
}

.al-input::placeholder,
.al-field input::placeholder {
  color: var(--al-soft);
}

.al-input:focus,
.al-field input:focus {
  outline: none;
  border-color: var(--al-input-focus);
  box-shadow: 0 0 0 4px var(--al-ring);
}

.al-field__toggle {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--al-soft);
  cursor: pointer;
  padding: 0;
}

.al-field__toggle:hover,
.al-field__toggle .ph-eye-slash {
  color: var(--al-input-focus);
}

.al-caps {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: #d97706;
}

html.dark .al-caps,
html[data-theme="dark"] .al-caps {
  color: #fbbf24;
}

.al-caps.is-on {
  display: flex;
}

.al-remember-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.1rem;
}

.al-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.al-remember-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.al-remember input,
.al-remember-input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--al-input-border);
  border-radius: 0.35rem;
  background: var(--al-surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.al-remember input:checked,
.al-remember-input:checked {
  background: var(--al-btn-from);
  border-color: var(--al-btn-from);
}

.al-remember__check {
  position: absolute;
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.al-remember input:checked + .al-remember__check,
.al-remember-input:checked + .al-remember__check {
  opacity: 1;
}

.al-remember span {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--al-muted);
}

.al-remember:hover span {
  color: var(--al-text);
}

.al-submit {
  margin-top: 0.15rem;
  width: 100%;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--al-btn-from), var(--al-btn-to));
  box-shadow: var(--al-btn-shadow);
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}

.al-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--al-btn-hover-from), var(--al-btn-hover-to));
}

.al-submit:focus {
  outline: none;
  box-shadow: var(--al-btn-shadow), 0 0 0 4px var(--al-ring);
}

.al-submit:disabled {
  opacity: 0.8;
  cursor: wait;
  transform: none;
}

/* Passkey */
.al-passkey-btn {
  width: 100%;
  min-height: 3.15rem;
  height: auto;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--al-passkey-from), var(--al-passkey-to));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  white-space: normal;
  text-align: center;
  box-shadow: var(--al-passkey-shadow);
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.15s;
}

.al-passkey-btn span {
  min-width: 0;
}

.al-passkey-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.al-passkey-btn:disabled {
  opacity: 0.75;
  cursor: wait;
  box-shadow: none;
}

.al-passkey-hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--al-soft);
  text-align: center;
}

.al-sns {
  margin-top: 1.25rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--al-surface-border);
}

.al-sns__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--al-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.al-sns__label::before,
.al-sns__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.al-sns__row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.al-sns__btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
}

.al-sns__btn--kakao { background: #fee500; color: #191919; }
.al-sns__btn--naver { background: #03c75a; color: #fff; }
.al-sns__btn--google { background: #fff; border-color: #e2e8f0; }

.al-sns__note {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--al-soft);
  word-break: keep-all;
}

.al-passkey-msg {
  margin: 0.5rem 0 0;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--al-muted);
}

.al-identified-toggle {
  margin: 0.85rem 0 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--al-soft);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
}

.al-identified-toggle:hover {
  color: var(--al-input-focus);
}

.al-identified {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--al-surface-border);
  background: var(--al-input-bg);
  min-width: 0;
}

.al-identified-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--al-soft);
  margin-bottom: 0.45rem;
}

.al-identified .al-login-input,
.al-login-input {
  height: 2.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--al-surface);
  border: 1px solid var(--al-input-border);
  border-radius: 0.75rem;
  padding: 0 0.9rem;
  font-size: 0.9375rem;
  color: var(--al-text);
  box-sizing: border-box;
  font-family: inherit;
}

.al-login-input:focus {
  outline: none;
  border-color: var(--al-input-focus);
  box-shadow: 0 0 0 3px var(--al-ring);
}

.al-identified-btn {
  margin-top: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--al-input-border);
  background: var(--al-surface);
  color: var(--al-text);
  font-weight: 700;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.35;
  white-space: normal;
}

.al-identified-btn:hover {
  border-color: var(--al-input-focus);
}

.al-copy-mobile {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--al-soft);
}

@media (min-width: 1024px) {
  .al-copy-mobile {
    display: none;
  }
}

body.admin-login input:-webkit-autofill,
body.admin-login input:-webkit-autofill:hover,
body.admin-login input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px var(--al-autofill) inset !important;
  -webkit-text-fill-color: var(--al-text) !important;
  caret-color: var(--al-text);
  transition: background-color 9999s ease-out;
}

/* 캡챠가 좁은 화면에서 넘치지 않게 */
body.admin-login .portal-login-captcha {
  min-width: 0;
}

body.admin-login .portal-login-captcha__label {
  color: var(--al-text);
}

body.admin-login .portal-login-captcha__row {
  flex-wrap: wrap;
  min-width: 0;
}

body.admin-login .portal-login-captcha__img {
  max-width: min(168px, 100%);
  height: auto;
  border-color: var(--al-input-border);
  background: var(--al-input-bg);
}

body.admin-login .portal-login-captcha__refresh {
  border-color: var(--al-input-border);
  background: var(--al-surface);
  color: var(--al-muted);
}

body.admin-login .portal-login-captcha__input {
  max-width: 100%;
  min-width: 0;
  border-color: var(--al-input-border);
  background: var(--al-input-bg);
  color: var(--al-text);
}

body.admin-login .portal-login-captcha__input:focus {
  outline: none;
  border-color: var(--al-input-focus);
  box-shadow: 0 0 0 4px var(--al-ring);
}

/* 설정 패널: 아주 좁은 폭에서도 잘리지 않게 */
body.admin-login #b2bSettingsPanel {
  max-width: min(24rem, 100vw);
}

@keyframes al-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes al-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.06);
  }
}

@keyframes al-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

@keyframes al-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

html.b2b-reduce-motion *,
html.b2b-reduce-motion *::before,
html.b2b-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .al-brand__content,
  .al-form-wrap,
  .al-brand__orb,
  .al-brand__mesh,
  .al-brand__chip-dot {
    animation: none !important;
  }
}

.login-alert-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.62);
}

.login-alert-overlay.is-open {
  display: flex;
}

.login-alert-modal {
  width: min(100%, 22rem);
  padding: 1.45rem 1.3rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid var(--al-surface-border);
  background: var(--al-surface);
  color: var(--al-text);
  box-shadow: var(--al-surface-shadow);
  text-align: center;
  font-family: var(--al-font);
}

.login-alert-modal__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--al-brand-chip-bg);
  color: var(--al-input-focus);
  font-size: 1.35rem;
}

.login-alert-modal__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-alert-modal__body {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--al-muted);
  word-break: keep-all;
}

.login-alert-modal__btn {
  width: 100%;
  height: 2.75rem;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, var(--al-btn-from), var(--al-btn-to));
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--al-btn-shadow);
}

.login-alert-modal__btn:hover {
  background: linear-gradient(180deg, var(--al-btn-hover-from), var(--al-btn-hover-to));
}

@media (max-width: 768px) {
  .al-form-panel {
    align-items: flex-start;
    padding-top: 3.6rem;
  }

  .al-card {
    border-radius: 1.15rem;
  }

  .al-submit,
  .al-passkey-btn,
  .al-identified-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .al-form-wrap {
    max-width: calc(100vw - 1.5rem);
  }

  .al-mobile-brand {
    margin-left: 2.25rem;
    margin-right: 2.25rem;
  }

  .al-tab {
    font-size: 0.75rem;
    padding: 0.55rem 0.2rem;
  }

  .al-passkey-btn {
    font-size: 0.8125rem;
  }

  .al-card {
    padding: 1.15rem 1rem 1.25rem;
  }
}

@media (max-width: 360px) {
  .al-tabs {
    grid-template-columns: 1fr;
  }

  .al-tab {
    white-space: normal;
  }
}
