/* 첫 화면(이름 정하기). Istream 로그인 화면(Istream/public/istream/auth.css)의 뼈대와 색을 따른다:
   왼쪽 히어로 + 오른쪽 카드, 어두운 바탕에 하늘색 포인트. 왼쪽 배경에는 블록이 떨어진다(entry.js). */
.entry {
  --e-bg: #0d0e12; --e-bg2: #13151b; --e-line: rgba(255, 255, 255, .08); --e-line2: rgba(255, 255, 255, .16);
  --e-text: #f4f5f7; --e-muted: #9ca3af; --e-dim: #6b7280; --e-accent: #00d2ff; --e-accent-rgb: 0, 210, 255; --e-ink: #061318;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -0.01em; word-break: keep-all;
}
body.on-entry { padding: 0; background: #0d0e12; }
body.on-entry .top { display: none; }
body.on-entry .app { max-width: none; }

.en-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* 왼쪽 */
.en-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 40px clamp(28px, 5vw, 64px); border-right: 1px solid var(--e-line);
  background: radial-gradient(900px 520px at 12% 0%, rgba(var(--e-accent-rgb), .18), transparent 62%),
              radial-gradient(700px 500px at 100% 100%, rgba(168, 85, 247, .16), transparent 60%), #0a0b0f;
}
.en-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55;
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgba(0,0,0,.35) 100%); }
.en-hero > :not(.en-rain) { position: relative; z-index: 1; }
.en-brand, .en-card-brand { font: 400 30px "Russo One", sans-serif; color: #fff; letter-spacing: .04em; }
.en-brand span, .en-card-brand span { color: var(--e-accent); }
.en-hero-body { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.en-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--e-text); background: rgba(var(--e-accent-rgb), .1); border: 1px solid rgba(var(--e-accent-rgb), .35); }
.en-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--e-accent); animation: en-pulse 1.8s infinite; }
@keyframes en-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, .55); } 70% { box-shadow: 0 0 0 9px rgba(0, 210, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); } }
.en-hero h1 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.18; letter-spacing: -0.035em; color: #fff; font-weight: 800; text-wrap: balance; }
.en-hero h1 b { font-weight: 800; background: linear-gradient(90deg, var(--e-accent), #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.en-sub { margin: 0; font-size: 16px; line-height: 1.65; color: #c9ced8; max-width: 30em; }
.en-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.en-points li { padding: 5px 11px; border-radius: 8px; font-size: 13px; color: #dfe4ec; background: rgba(19, 21, 27, .75); border: 1px solid var(--e-line2); white-space: nowrap; }
.en-foot { font-size: 12.5px; color: var(--e-dim); }

/* 오른쪽 */
.en-panel { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 40px) clamp(14px, 4vw, 24px); background: var(--e-bg); }
.en-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.en-card-brand { display: none; }
.en-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.en-subtitle { margin: -6px 0 4px; font-size: 14px; color: var(--e-muted); line-height: 1.55; }
.en-field { display: flex; flex-direction: column; gap: 6px; }
.en-field > span { font-size: 12.5px; font-weight: 600; color: var(--e-muted); }
.entry .en-input { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--e-line2); background: var(--e-bg2);
  color: #fff; font-size: 16px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.entry .en-input::placeholder { color: var(--e-dim); }
.entry .en-input:focus { border-color: var(--e-accent); box-shadow: 0 0 0 3px rgba(var(--e-accent-rgb), .18); outline: none; }
.en-submit { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--e-accent); color: var(--e-ink); font-size: 15.5px; font-weight: 800; font-family: inherit;
  cursor: pointer; box-shadow: 0 8px 22px -10px rgba(var(--e-accent-rgb), .8); transition: background .15s, transform .1s; }
.en-submit:hover { background: #29dcff; }
.en-submit:active { transform: translateY(1px); }
.en-keep { margin: 0; font-size: 12.5px; color: var(--e-muted); line-height: 1.55; }

@media (max-width: 960px) {
  .en-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .en-hero { border-right: 0; border-bottom: 1px solid var(--e-line); padding: 24px 20px; gap: 16px; justify-content: flex-start; min-height: 300px; }
  .en-hero h1 { font-size: clamp(24px, 6vw, 30px); }
  .en-sub { font-size: 14.5px; }
  .en-foot { display: none; }
  .en-panel { align-items: flex-start; padding: 24px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) { .en-eyebrow i { animation: none; } }

/* ── 로그인 카드(Istream auth.css 와 같은 결) ── */
.en-pane { display: flex; flex-direction: column; gap: 12px; }
.en-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.en-title b { color: var(--e-accent); font-weight: 800; }
.en-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #121419; border: 1px solid var(--e-line); border-radius: 12px; }
.en-tabs button { border: 0; background: transparent; color: var(--e-muted); font: inherit; font-size: 14px; font-weight: 700; padding: 10px 0; border-radius: 9px; cursor: pointer; }
.en-tabs button[aria-selected="true"] { background: #292e3b; color: #fff; box-shadow: inset 0 0 0 1px var(--e-line2); }
.en-check { display: flex; flex-direction: row; align-items: center; gap: 9px; font-size: 13px; color: var(--e-text); cursor: pointer; line-height: 1.5; }
.en-check input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--e-accent); }
.en-check a { color: var(--e-accent); }
.en-msg { margin: 0; min-height: 0; font-size: 13px; font-weight: 600; color: #ff6b7d; }
.en-msg:empty { display: none; }
.en-msg.ok { color: #34d399; }
.en-link { align-self: center; border: 0; background: none; color: var(--e-muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.en-link:hover { color: #fff; }
.en-divider { display: flex; align-items: center; gap: 12px; color: var(--e-dim); font-size: 12px; }
.en-divider::before, .en-divider::after { content: ''; flex: 1; height: 1px; background: var(--e-line); }
.en-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 12px;
  border: 1px solid #dadce0; background: #fff; color: #1f1f1f; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.en-google:disabled { opacity: .5; cursor: not-allowed; }
/* 네이버(초록·흰 N)·카카오(노랑·검은 말풍선) — 각 회사 버튼 색. 키가 없으면 버튼을 숨긴다(auth.js) */
.en-google[hidden] { display: none; }
.en-naver { border-color: #03c75a; background: #03c75a; color: #fff; }
.en-kakao { border-color: #fee500; background: #fee500; color: rgba(0, 0, 0, .85); }
.n-mark, .k-mark { width: 18px; height: 18px; flex: none; background: center / contain no-repeat; }
.n-mark { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23fff" d="M4 3h5.6l4.9 7.3V3H20v18h-5.6l-4.9-7.3V21H4z"/></svg>'); }
.k-mark { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 3C6.5 3 2 6.5 2 10.8c0 2.8 1.9 5.2 4.7 6.6l-1 3.6c-.1.3.3.6.6.4l4.3-2.8c.5.1 1 .1 1.4.1 5.5 0 10-3.5 10-7.9S17.5 3 12 3z"/></svg>'); }
.g-mark { width: 18px; height: 18px; flex: none; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-width="3.4"><circle cx="12" cy="12" r="8" stroke="%234285F4" stroke-dasharray="6.28 50.27"/><circle cx="12" cy="12" r="8" stroke="%2334A853" stroke-dasharray="14.66 50.27" stroke-dashoffset="-6.28"/><circle cx="12" cy="12" r="8" stroke="%23FBBC05" stroke-dasharray="9.08 50.27" stroke-dashoffset="-20.94"/><circle cx="12" cy="12" r="8" stroke="%23EA4335" stroke-dasharray="13.96 50.27" stroke-dashoffset="-30.02"/><path d="M12 12h8.2" stroke="%234285F4"/></svg>') center / contain no-repeat; }
.en-ghost { width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(var(--e-accent-rgb), .45); background: transparent; color: var(--e-accent);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.en-ghost:hover { background: rgba(var(--e-accent-rgb), .08); }
.en-legal { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--e-dim); }
.en-legal a { color: var(--e-muted); }
.entry .en-input + .en-input { margin-top: 0; }

/* 왼쪽 대전 장면: 가운데 내 판 + 양옆 상대 판이 스스로 두고, 공격이 오간다(entry.js) */
.en-hero { justify-content: flex-start; }
.en-hero-body { gap: 16px; }
.en-scene { position: relative; flex: 1; min-height: 300px; max-height: 460px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--e-line2); background: radial-gradient(600px 300px at 50% 0%, rgba(var(--e-accent-rgb), .12), transparent 70%), #07080c;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255,255,255,.05); }
.en-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 960px) { .en-scene { min-height: 240px; max-height: 280px; flex: none; } }

/* 로고 위: jihyun.dev로 돌아가기(작은 글자 링크) */
.en-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.en-home { display: inline-flex; align-items: center; gap: 4px; margin-left: -2px; color: rgba(255,255,255,.5);
  font-size: 13px; text-decoration: none; transition: color .15s; }
.en-home:hover { color: #fff; }
.en-home svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.en-home:hover svg { transform: translateX(-2px); }
