/* 방문자 화면: 입장 · 회사 홈 */

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* 파란 커버 공통: 도면 격자 */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 35%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 90% at 75% 35%, #000 25%, transparent 78%);
}

/* ================================================================ 입장 */
.v-login { background: var(--paper); }
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 560px); }

.login-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; padding: 48px 56px;
  background: linear-gradient(135deg, #1B41B9 0%, #2650D4 55%, #3661EA 100%);
  color: #fff;
}
.hero-mark {
  position: absolute; z-index: -1; right: -96px; bottom: -72px; width: 540px; height: 605px;
  color: rgba(255,255,255,.075);
}
.hero-logo { display: inline-flex; width: max-content; color: #fff; border-radius: 6px; }
.hero-logo svg { height: 30px; width: 114px; fill: currentColor; }
.hero-copy { align-self: end; max-width: 560px; }
.hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.76); }
.login-hero h1 { margin-top: 16px; color: #fff; font-size: 56px; line-height: 1.12; letter-spacing: -0.035em; font-weight: 750; }
.hero-sub { margin-top: 20px; font-size: 17px; color: rgba(255,255,255,.84); }
.hero-foot { margin-top: 56px; font-size: 13px; color: rgba(255,255,255,.62); }

.login-panel { display: grid; place-items: center; padding: 48px; }
.login-form { width: 100%; max-width: 380px; display: grid; gap: 22px; }
.login-head { display: grid; gap: 8px; }
.login-head h2 { font-size: 28px; }
.login-head .muted { font-size: 15px; }
.input-code {
  height: 54px; padding: 0 16px; font-family: var(--mono); font-size: 19px; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 12px;
}
.input-code::placeholder { font-family: var(--font); font-size: 15px; letter-spacing: 0; text-transform: none; }
.login-form .field { gap: 8px; }
.login-note { font-size: 13px; color: var(--text-3); text-align: center; }
.login-admin { text-align: center; font-size: 13px; }
.shake { animation: shake 360ms var(--ease); }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(2px); }
}

/* ================================================================ 회사 홈 */
.v-home { background: var(--paper); }
.v-top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.v-top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.v-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; border-radius: 6px; }
.v-logo { height: 22px; width: 83px; color: var(--blue-900); fill: currentColor; }
.v-brand-sep { width: 1px; height: 16px; background: var(--line-strong); }
.v-brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.v-top-right { display: flex; align-items: center; gap: 8px; }
.co-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.co-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }

.v-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #1B41B9 0%, #2650D4 60%, #3661EA 100%); color: #fff;
  padding: 56px 0 112px;
}
.v-hero-inner { position: relative; }
.v-hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }
.v-hero-eyebrow::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.v-hero h1 { margin-top: 10px; color: #fff; font-size: 44px; letter-spacing: -0.03em; font-weight: 750; }
.v-hero-sub { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.76); }

.v-main { position: relative; margin-top: -72px; padding-bottom: 72px; display: grid; gap: 28px; }
.v-section { display: grid; gap: 20px; }
.v-section-title { font-size: 15px; font-weight: 650; color: var(--text-2); margin-top: 12px; }
.v-notice { margin-bottom: -8px; }

.sem {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 32px; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(26,29,36,.04), 0 18px 40px -28px rgba(27,65,185,.35);
}
.sem-date {
  display: grid; justify-items: center; align-self: start; gap: 2px; padding: 14px 0 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
}
.sem-month { font-size: 13px; font-weight: 650; color: var(--blue-900); }
.sem-day { font-size: 40px; font-weight: 750; line-height: 1.05; color: var(--ink); letter-spacing: -0.03em; }
.sem-wd { font-size: 12.5px; color: var(--text-3); }
.sem-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sem-sub { font-size: 14px; font-weight: 600; color: var(--text-2); }
.sem-title { margin: 12px 0 18px; font-size: 30px; line-height: 1.28; letter-spacing: -0.03em; font-weight: 750; }
.sem-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sem-meta li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-2); }
.sem-meta .i { color: var(--text-3); margin-top: 2px; }
.sem-meta b { color: var(--ink); font-weight: 650; }
.meta-note {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px;
  background: var(--surface-2); font-size: 13px; color: var(--text-3); vertical-align: 1px;
}
.sem-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.sem-files { margin-top: 20px; display: grid; gap: 10px; }
.sem-files-label { font-size: 12.5px; font-weight: 650; color: var(--text-3); }
.sem-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sem-files a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sem-files a:hover { background: var(--surface-2); border-color: var(--line-strong); }
.sem-files .i { color: var(--text-3); }

.sem-past { box-shadow: none; background: color-mix(in srgb, var(--surface) 70%, var(--paper)); }
.sem-past .sem-title { font-size: 22px; }
.sem-past .sem-month { color: var(--text-3); }

.v-empty { box-shadow: 0 18px 40px -28px rgba(27,65,185,.35); }

.v-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; }
.v-foot-inner { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-3); }
.v-foot-logo { height: 15px; width: 57px; color: #9A9EA6; fill: currentColor; flex: none; }

/* 관리자 미리 보기 띠 */
.preview-bar { background: var(--ink); color: #fff; font-size: 13px; }
.preview-inner { display: flex; align-items: center; gap: 12px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.preview-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--cyan-600); color: var(--ink); font-weight: 700; font-size: 12.5px;
}
.preview-text { color: rgba(255,255,255,.82); flex: 1; min-width: 200px; }
.preview-close { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 단순 안내 화면 */
.page-plain { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--paper); }
.plain-card {
  width: 100%; max-width: 460px; display: grid; gap: 14px; justify-items: start; padding: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.plain-logo { height: 22px; width: 83px; color: var(--blue-900); fill: currentColor; margin-bottom: 12px; }
.plain-card h1 { font-size: 22px; }
.plain-card .btn { margin-top: 8px; }

/* ================================================================ 반응형 */
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 24px 20px 32px; grid-template-rows: auto auto; gap: 32px; }
  .hero-logo svg { height: 24px; width: 91px; }
  .login-hero h1 { font-size: 34px; margin-top: 10px; }
  .hero-sub { margin-top: 12px; font-size: 15px; }
  .hero-foot { display: none; }
  .hero-mark { width: 300px; height: 336px; right: -70px; bottom: -90px; }
  .login-panel { place-items: start center; padding: 32px 20px 48px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .v-top-inner { height: 56px; }
  .v-logo { height: 19px; width: 72px; }
  .v-brand { gap: 10px; }
  .co-chip { display: none; }
  .preview-text { order: 3; flex-basis: 100%; min-width: 0; font-size: 12.5px; }
  .preview-close { margin-left: auto; }
  .v-hero { padding: 32px 0 88px; }
  .v-hero h1 { font-size: 32px; }
  .v-main { margin-top: -60px; gap: 20px; padding-bottom: 48px; }
  .sem { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .sem-date { display: inline-flex; align-items: baseline; justify-self: start; gap: 6px; padding: 6px 12px; border-radius: 10px; }
  .sem-day { font-size: 18px; }
  .sem-day::after { content: "일"; font-size: 13px; font-weight: 600; margin-left: 1px; }
  .sem-month { font-size: 13px; }
  .sem-title { font-size: 23px; margin: 10px 0 14px; }
  .sem-meta li { font-size: 14.5px; }
  .sem-actions { flex-direction: column; margin-top: 20px; padding-top: 20px; }
  .sem-actions .btn { width: 100%; }
  .v-foot-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* ================================================================ 세미나 목록(공개) · 세미나별 입장 */
.v-hero-mark { position: absolute; z-index: 0; right: -60px; bottom: -150px; width: 420px; height: 470px; color: rgba(255,255,255,.06); pointer-events: none; }
.v-dash .v-hero { padding: 56px 0 120px; }
.v-dash .v-hero-eyebrow::before { background: var(--cyan-600); }
.v-dash .v-hero h1 { font-size: 48px; }
.v-hero-stats { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.v-hero-stats div {
  display: grid; gap: 2px; min-width: 112px; padding: 12px 18px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
}
.v-hero-stats dt { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72); }
.v-hero-stats dd { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: #fff; }
.v-section-title-on { color: #fff; margin-top: 0; }
.v-dash .v-main { margin-top: -84px; }

.sem-co { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sem-co .co-dot { flex: none; }
.sem-co-name { font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.sem-co-ko { font-size: 13.5px; color: var(--text-3); }
.sem-co-ko::before { content: "·"; margin-right: 8px; color: var(--line-strong); }
.sem-state { margin-left: auto; }
.state-lock, .state-open {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650;
}
.state-lock { background: var(--surface-2); color: var(--text-2); }
.state-open { background: var(--blue-100); color: var(--blue-900); }
.sem-locked .sem-actions .btn .i { opacity: .9; }

.login-back {
  display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-bottom: -6px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; border-radius: 6px;
}
.login-back:hover { color: var(--blue-900); }
.hero-title-sem { font-size: 44px !important; line-height: 1.2 !important; }
.hero-meta { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-meta li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: rgba(255,255,255,.88); }
.hero-meta .i { color: rgba(255,255,255,.66); }

@media (max-width: 960px) {
  .hero-title-sem { font-size: 28px !important; }
  .hero-meta { margin-top: 14px; }
  .hero-meta li { font-size: 14.5px; }
}
@media (max-width: 720px) {
  .v-dash .v-hero { padding: 32px 0 96px; }
  .v-dash .v-hero h1 { font-size: 34px; }
  .v-hero-stats div { min-width: 0; flex: 1; padding: 10px 12px; }
  .v-hero-stats dd { font-size: 18px; }
  .v-hero-mark { width: 240px; height: 270px; right: -60px; bottom: -90px; }
  .v-dash .v-main { margin-top: -64px; }
  .sem-state { margin-left: 0; flex-basis: 100%; }
  .v-top-right .btn-secondary span { display: none; }
}

/* ---------------------------------------------------------------- PowerPoint 변환 화면 */
.pptx-card { max-width: 560px; width: 100%; text-align: left; display: grid; gap: 14px; justify-items: stretch; align-items: start; }
.pptx-card > * { min-width: 0; }
.pptx-card .login-back, .pptx-card .plain-logo, .pptx-done .btn { justify-self: start; }
.pptx-deck { margin: -4px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; color: var(--text-2); }
.pptx-deck b { color: var(--ink); font-weight: 650; }
.pptx-deck span { font-size: 13.5px; color: var(--text-3); }
.pptx-opts { display: grid; gap: 12px; }
.pptx-opts fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pptx-opts legend { font-size: 13px; font-weight: 650; color: var(--text-2); margin-bottom: 6px; }
.pptx-opts .opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.pptx-opts .opt:has(input:checked) { border-color: var(--blue-900); background: var(--blue-100); }
.pptx-opts .opt input { margin-top: 3px; accent-color: var(--blue-900); }
.pptx-opts .opt b { display: block; color: var(--ink); font-weight: 650; }
.pptx-opts .btn { justify-self: start; margin-top: 4px; }
.pptx-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.pptx-bar span { display: block; height: 100%; width: 0; background: var(--blue-900); transition: width .25s ease; }
.pptx-status { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.pptx-done p { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.pptx-done .i { color: var(--blue-900); }
.pptx-error { margin: 0; padding: 10px 12px; border-radius: var(--r-ctl); background: #FDECEC; color: #9B1C1C; font-size: 14px; }
.pptx-note { font-size: 13px; line-height: 1.55; margin: 4px 0 0; }
.pptx-stage { position: fixed; left: -20000px; top: 0; width: 1700px; height: 1000px; overflow: hidden; pointer-events: none; }
.pptx-stage iframe { width: 1700px; height: 1000px; border: 0; }
