/* 인증 UI 전용 스타일 — #auth-slot 배지·버튼 및 로그인/회원가입 폼 (기존 디자인 토큰 재사용, 다크/라이트 자동 대응) */

/* ===== 헤더 CTA 슬롯 ===== */
#auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#auth-slot .auth-btn {
  padding: 8px 14px;
  font-size: 13.5px;
}
.auth-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  max-width: 220px;
}
.auth-name {
  color: var(--fg);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-role {
  color: var(--accent);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 로그인/회원가입 페이지 ===== */
.auth-page {
  padding: 56px 0 72px;
}
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px 30px;
}
.auth-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
}
.auth-subtitle {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
}
.auth-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .15s;
}
.auth-input::placeholder { color: var(--dim); }
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-submit {
  width: 100%;
  margin-top: 8px;
}
.auth-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* 오류 문구 */
.auth-error {
  background: rgba(255, 85, 85, .10);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  padding: 11px 14px;
  margin: 0 0 18px;
}

/* 안내/도움말 문구 */
.auth-hint {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 8px 0 0;
}

/* 접이식 강사 코드 입력 */
.auth-collapse {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 18px;
  overflow: hidden;
}
.auth-collapse-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}
.auth-collapse-summary::-webkit-details-marker { display: none; }
.auth-collapse-summary::before {
  content: "＋";
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transition: transform .2s;
}
.auth-collapse[open] .auth-collapse-summary::before {
  content: "－";
}
.auth-collapse-summary:hover { color: var(--accent); }
.auth-optional {
  color: var(--dim);
  font-weight: 600;
}
.auth-collapse-body {
  padding: 4px 14px 16px;
  margin-bottom: 0;
}

/* 하단 전환 링크 */
.auth-foot {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 22px 0 0;
}
.auth-foot a {
  color: var(--accent);
  font-weight: 700;
}
.auth-foot a:hover { text-decoration: underline; }

/* ===== 반응형 ===== */
@media (max-width: 640px) {
  /* 모바일 메뉴에서 CTA가 세로로 펼쳐질 때 슬롯도 세로 정렬 */
  .nav-cta #auth-slot {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .nav-cta #auth-slot .auth-btn {
    width: 100%;
  }
  .nav-cta .auth-badge {
    max-width: none;
    justify-content: center;
  }
  .auth-card {
    padding: 28px 20px 26px;
  }
}
