/* 원탁토론 메인(로그인) — 피그마 «메인 / 최종 디자인» (Desktop 1920 · 1600 · Mobile 390)
   색은 피그마 변수, 글꼴은 원탁토론 화면과 같은 Pretendard (같은 파일을 써서 한 번만 받는다) */
@font-face {
  font-family: 'Pretendard';
  src: url('../../../plugin/gowsoft/skin/roundtable/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

.rtm {
  --ink: #202b45;
  --muted: #626d83;
  --white: #ffffff;
  --blue: #345cf4;
  --blue-hover: #2a4bd0;
  --line: #dde3f0;
  --field-line: #d1d9e8;
  --bg: #f5f7ff;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
.rtm *, .rtm *::before, .rtm *::after { box-sizing: border-box; }
.rtm h1, .rtm h2, .rtm p { margin: 0; }
body:has(.rtm) { margin: 0; background: #f5f7ff; }

/* ── 머리 (80px) ── */
.rtm-head { height: 80px; flex: none; background: var(--white); display: flex; align-items: flex-start; padding: 17px 60px 0; }
.rtm-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.rtm-logo { display: block; }
.rtm-logo-m { display: none; }
.rtm-name { font-size: 23px; font-weight: 700; line-height: 1.45; }
.rtm .rtm-tagline { margin: 12px 178px 0 auto; font-size: 12px; line-height: 1.45; color: var(--muted); }   /* 오른쪽 끝에서 약 240px (1920: x1460 · 1600: x1145) · y29 */

/* ── 본문: 왼쪽 그림·문구 · 오른쪽 로그인 ── */
.rtm-main { flex: 1; display: flex; min-height: 640px; }
.rtm-visual { position: relative; flex: 0 0 63.75%; overflow: hidden; }          /* 1224 / 1920 */
.rtm-illust { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.rtm-fade { display: none; }
.rtm-hero { position: relative; padding: 58px 0 0 88px; }
.rtm-hero h1 { font-size: clamp(48px, 3.75vw, 72px); font-weight: 700; line-height: 1.35; letter-spacing: -0.044em; }
.rtm-hero p { margin-top: 19px; font-size: clamp(18px, 1.2vw, 23px); line-height: 1.45; color: var(--muted); }
.rtm-br-m { display: none; }

.rtm-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 48px 32px 32px; }   /* 카드 x1280 · y201 (가운데에서 왼쪽 8 · 아래 8) */
.rtm-card { width: 100%; max-width: 568px; background: var(--white); border-radius: 20px; padding: 76px 60px 140px; }   /* 높이 710 */

/* ── 로그인 ── */
.rtm-form { display: flex; flex-direction: column; gap: 26px; }
.rtm-title { display: flex; flex-direction: column; gap: 12px; line-height: 1.45; }
.rtm-title h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.05em; }
.rtm-title p { font-size: 15px; color: var(--muted); }
.rtm-fields { display: flex; flex-direction: column; gap: 20px; }
.rtm-field { display: flex; flex-direction: column; gap: 10px; }
.rtm-field label { font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--ink); }
.rtm-field input {
  height: 56px; width: 100%; padding: 0 18px; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.55; outline: none;
}
.rtm-field input::placeholder { color: var(--muted); opacity: 1; }
.rtm-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52, 92, 244, .16); }
.rtm-btn {
  height: 58px; width: 100%; border: 0; border-radius: 10px; background: var(--blue); color: var(--white);
  font: inherit; font-size: 16px; line-height: 1.55; cursor: pointer;
}
.rtm-btn:hover { background: var(--blue-hover); }
.rtm-btn:focus-visible { outline: 3px solid rgba(52, 92, 244, .35); outline-offset: 2px; }
.rtm-btn:disabled { opacity: .7; cursor: wait; }
.rtm-support { padding-top: 25px; }
.rtm-support p { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ── 꼬리 (64px) ── */
.rtm-foot { height: 64px; flex: none; background: var(--white); display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 9% 0 58px; color: var(--muted); line-height: 1.45; }
.rtm-foot-l { font-size: 11px; white-space: pre; }
.rtm-foot-r { font-size: 10px; }

/* ── Desktop 1600 (02 시안): 머리 74 · 꼬리 56 · 카드 484 ── */
@media (max-width: 1760px) {
  .rtm-head { height: 74px; }
  .rtm-foot { height: 56px; }
  .rtm-hero { padding: 52px 0 0 76px; }
  .rtm-side { padding: 64px 40px 32px 32px; }   /* 카드 x1064 · y195 */
  .rtm-card { max-width: 484px; padding: 65px 50px 101px; }   /* 높이 660 */
}

/* ── 좁은 화면: 위아래로 쌓기 (03 Mobile 390 시안) ── */
@media (max-width: 1000px) {
  .rtm-head { height: 64px; padding: 19px 24px 0; }
  .rtm-brand { gap: 8px; }
  .rtm-logo { display: none; }
  .rtm-logo-m { display: block; }
  .rtm-name { font-size: 18px; }
  .rtm-tagline { display: none; }

  .rtm-main { flex-direction: column; min-height: 0; }
  /* 위 170px: 문구 + 흐림(배경색 → 투명). 그림은 머리 아래 62px 부터 정사각형으로 (126 − 64) — 문구 영역과 108px 겹친다 */
  .rtm-visual { flex: none; display: flex; flex-direction: column; overflow: hidden; }
  .rtm-hero { order: -1; position: relative; z-index: 2; height: 170px; padding: 24px 24px 0; }
  .rtm-fade { display: block; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 170px; background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 42%, rgba(245, 247, 255, 0) 100%); }
  .rtm-illust { position: relative; z-index: 0; inset: auto; width: 100%; height: auto; aspect-ratio: 1 / 1; margin-top: -108px; }
  .rtm-hero h1 { font-size: 30px; letter-spacing: -0.043em; }
  .rtm-hero p { margin-top: 12px; font-size: 13px; }
  .rtm-br-m { display: inline; }

  .rtm-side { padding: 12px 16px 24px; display: block; }
  .rtm-card { max-width: 560px; margin: 0 auto; border-radius: 18px; padding: 30px 22px 47px; }
  .rtm-form { gap: 24px; }
  .rtm-title h2 { font-size: 25px; letter-spacing: -0.064em; }
  .rtm-title p { font-size: 13px; }
  .rtm-support p { font-size: 12px; }

  .rtm-foot { height: 60px; padding: 20px 24px 0; }
  .rtm-foot-l { display: none; }
}
