/**
 * NEW3 로그인·가입 게이트 — 프리미엄 라이트
 * Pretendard · letter-spacing -0.02em · line-height 1.55
 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --letter-spacing: -0.02em;
  --line-height: 1.55;

  --auth-bg-1: #f0f6ff;
  --auth-bg-2: #e3efff;
  --auth-bg-3: #f8fbff;
  --auth-brand: #1d4ed8;
  --auth-brand-2: #0ea5e9;
  --auth-brand-soft: rgba(37, 99, 235, 0.1);
  --auth-text: #0f2744;
  --auth-muted: #5a7291;
  --auth-subtle: #8aa0bc;
  --auth-surface: rgba(255, 255, 255, 0.92);
  --auth-surface-solid: #ffffff;
  --auth-line: rgba(37, 99, 235, 0.12);
  --auth-line-focus: rgba(37, 99, 235, 0.45);
  --auth-shadow: 0 28px 80px rgba(29, 78, 216, 0.12), 0 8px 24px rgba(15, 39, 68, 0.06);
  --auth-shadow-soft: 0 4px 16px rgba(29, 78, 216, 0.08);
  --auth-radius: 20px;
  --auth-radius-sm: 12px;
  --auth-danger: #dc2626;
  --auth-danger-bg: rgba(220, 38, 38, 0.08);
  --auth-gold: #b8860b;
}

html.fsl-auth-locked,
html.fsl-auth-locked body {
  overflow: hidden;
}

.fsl-auth-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: var(--font-family);
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
}

.fsl-auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 82%, rgba(37, 99, 235, 0.16), transparent 50%),
    linear-gradient(155deg, var(--auth-bg-3) 0%, var(--auth-bg-1) 42%, var(--auth-bg-2) 100%);
}

.fsl-auth-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(37, 99, 235, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

/* 메인 헤더처럼 화면 좌·우 상단 모서리 로고 (레이아웃은 그대로) */
.fsl-auth-corner-logo {
  position: absolute;
  z-index: 3;
  top: clamp(12px, 2.5vw, 24px);
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: min(34vw, 220px);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(15, 39, 68, 0.08));
}

.fsl-auth-corner-logo--left {
  left: clamp(12px, 3vw, 28px);
  object-position: left center;
}

.fsl-auth-corner-logo--right {
  right: clamp(12px, 3vw, 28px);
  object-position: right center;
}

.fsl-auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
  min-height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 72px) clamp(20px, 4vw, 48px) clamp(20px, 4vw, 48px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  box-sizing: border-box;
}

.fsl-auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(8px, 2vw, 24px);
}

.fsl-auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  box-shadow: var(--auth-shadow-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-brand);
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
}

.fsl-auth-brand-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-brand-2), var(--auth-brand));
  box-shadow: 0 0 0 3px var(--auth-brand-soft);
}

.fsl-auth-brand-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: var(--letter-spacing);
  line-height: 1.25;
  color: var(--auth-text);
}

.fsl-auth-brand-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--auth-brand), var(--auth-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fsl-auth-brand-desc {
  margin: 0;
  max-width: 36ch;
  font-size: 15px;
  color: var(--auth-muted);
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
}

.fsl-auth-brand-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fsl-auth-brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--auth-muted);
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
}

.fsl-auth-brand-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid var(--auth-line);
  background-color: var(--auth-brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11 12.5 5' stroke='%231d4ed8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.fsl-auth-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fsl-auth-card {
  width: min(100%, 420px);
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--auth-radius);
  background: var(--auth-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--auth-shadow);
  position: relative;
  overflow: hidden;
}

.fsl-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--auth-brand), var(--auth-brand-2), #38bdf8);
}

.fsl-auth-card-head {
  margin-bottom: 22px;
}

.fsl-auth-card-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
  color: var(--auth-text);
}

.fsl-auth-card-head p {
  margin: 0;
  font-size: 14px;
  color: var(--auth-muted);
}

.fsl-auth-form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.fsl-auth-err {
  margin: 0;
  min-height: 20px;
  padding: 10px 12px;
  border-radius: var(--auth-radius-sm);
  font-size: 13px;
  color: var(--auth-danger);
  background: var(--auth-danger-bg);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.fsl-auth-err:empty {
  display: none;
  padding: 0;
  min-height: 0;
  border: none;
  background: transparent;
}

.fsl-auth-field {
  display: grid;
  gap: 8px;
}

.fsl-auth-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-muted);
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
}

.fsl-auth-input-wrap {
  position: relative;
}

.fsl-auth-input-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  padding-right: 52px;
  border-radius: var(--auth-radius-sm);
  border: 1px solid var(--auth-line);
  background: var(--auth-surface-solid);
  color: var(--auth-text);
  font: inherit;
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fsl-auth-input-wrap input:not([type="password"]) {
  padding-right: 14px;
}

.fsl-auth-input-wrap input::placeholder {
  color: var(--auth-subtle);
}

.fsl-auth-input-wrap input:hover {
  border-color: var(--auth-line-focus);
}

.fsl-auth-input-wrap input:focus {
  outline: none;
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 4px var(--auth-brand-soft);
}

.fsl-auth-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
  cursor: pointer;
}

.fsl-auth-pw-toggle:hover {
  color: var(--auth-brand);
  background: var(--auth-brand-soft);
}

.fsl-auth-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--auth-muted);
  cursor: pointer;
  font-weight: 500;
}

.fsl-auth-remember input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--auth-brand);
  flex-shrink: 0;
}

.fsl-auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.fsl-auth-actions--end {
  justify-content: flex-end;
}

.fsl-auth-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-brand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
  cursor: pointer;
  text-decoration: none;
}

.fsl-auth-link:hover {
  text-decoration: underline;
}

.fsl-auth-btn {
  padding: 12px 22px;
  border-radius: var(--auth-radius-sm);
  border: 1px solid var(--auth-line);
  background: var(--auth-surface-solid);
  color: var(--auth-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fsl-auth-btn:hover {
  border-color: var(--auth-line-focus);
  box-shadow: var(--auth-shadow-soft);
}

.fsl-auth-btn--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 48%, #0284c7 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.fsl-auth-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
}

.fsl-auth-btn--primary:active {
  transform: translateY(0);
}

.fsl-auth-user-hint {
  color: var(--auth-brand);
  font-weight: 600;
}

@media (max-width: 900px) {
  .fsl-auth-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
    padding-top: clamp(64px, 12vw, 80px);
  }

  .fsl-auth-brand {
    text-align: center;
    align-items: center;
    gap: 14px;
  }

  .fsl-auth-brand-desc {
    max-width: none;
  }

  .fsl-auth-brand-features {
    display: none;
  }
}

@media (max-width: 640px) {
  .fsl-auth-corner-logo {
    height: 32px;
    max-height: 32px;
    max-width: min(28vw, 100px);
  }
}
