/* 시사플랜 인증 페이지 (로그인/회원가입) 리디자인 — 2026-07-04 */

/* Pretendard 웹폰트 로컬 임베드 */
@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: local('Pretendard Regular'), url('/static/fonts/pretendard-400.woff2?v=2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: local('Pretendard Medium'), url('/static/fonts/pretendard-500.woff2?v=2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: local('Pretendard SemiBold'), url('/static/fonts/pretendard-600.woff2?v=2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: local('Pretendard Bold'), url('/static/fonts/pretendard-700.woff2?v=2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-display: swap; src: local('Pretendard ExtraBold'), url('/static/fonts/pretendard-800.woff2?v=2') format('woff2'); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #f4efe6;
  -webkit-font-smoothing: antialiased;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  color: #2b2a26;
}
input::placeholder { color: #b8b2a6; }
a { color: inherit; }

@keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(34px,-24px) scale(1.08); } 100% { transform: translate(0,0) scale(1); } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,22px) scale(1.1); } 100% { transform: translate(0,0) scale(1); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cardIn { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulseDot { 0%, 100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* ─────────── 레이아웃 ─────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  background: #f4efe6;
}
.auth-left {
  flex: 1 1 440px;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 52px;
  overflow: hidden;
}
.auth-right {
  flex: 1 1 480px;
  min-height: 100vh;
  padding: 20px;
}

.drift {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.drift--top-left {
  top: -150px; left: -130px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(194,104,63,.12), transparent 68%);
  animation: drift1 17s ease-in-out infinite;
}
.drift--top-right {
  top: -120px; right: -90px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(194,104,63,.16), transparent 70%);
  animation: drift2 18s ease-in-out infinite;
  filter: blur(18px);
}
.drift--bottom-left {
  bottom: -140px; left: -70px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(91,107,147,.13), transparent 70%);
  animation: drift1 21s ease-in-out infinite;
  filter: blur(18px);
}

/* ─────────── 브랜드 로우 ─────────── */
.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #f3d8cc;
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark__inner {
  position: relative;
  width: 23px; height: 23px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.brand-mark__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: #c2683f;
}
.brand-mark__num {
  position: absolute;
  top: 6px; left: 0; right: 0; bottom: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: #c2683f;
}
.brand-badge {
  font-size: 11px;
  font-weight: 700;
  color: #b45f3d;
  background: #f5e3d9;
  border: 1px solid #eecdbe;
  border-radius: 99px;
  padding: 3px 9px;
  letter-spacing: .02em;
}

/* ─────────── 폼 영역 ─────────── */
.auth-form-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 392px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 0;
}
.auth-title {
  margin: 0;
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: #2b2a26;
  line-height: 1.32;
}
.auth-title__accent {
  color: #c2683f;
  font-weight: 700;
}
.auth-sub {
  margin-top: 14px;
  font-size: 15px;
  color: #8a857c;
  line-height: 1.65;
}

.auth-error {
  margin-top: 22px;
  background: #fdf4f1;
  border: 1px solid #f4d9d0;
  color: #a3542f;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 11px;
}

.field {
  margin-top: 18px;
}
.field:first-of-type,
.auth-error + .field { margin-top: 30px; }
form > .field:first-of-type { margin-top: 30px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #3a3733;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #e5ddcf;
  border-radius: 13px;
  background: #fff;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: #2b2a26;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  border-color: #c2683f;
  box-shadow: 0 0 0 3px rgba(194,104,63,.13);
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #a8a296;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 10px;
  transition: color .15s;
}
.pw-toggle:hover { color: #b45f3d; }

/* 옵션 로우 */
.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 22px;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.remember__box {
  position: relative;
  width: 19px; height: 19px;
  border-radius: 6px;
  border: 1.5px solid #d8d1c4;
  background: #fff;
  display: block;
  flex: none;
}
.remember__check {
  position: absolute;
  inset: -1.5px;
  border-radius: 6px;
  background: #c2683f;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .12s, transform .12s;
}
.remember input:checked + .remember__box .remember__check {
  opacity: 1;
  transform: scale(1);
}
.remember__label {
  font-size: 13.5px;
  color: #4a463f;
}
.forgot {
  font-size: 13.5px;
  font-weight: 600;
  color: #b45f3d;
  text-decoration: none;
}
.forgot:hover { color: #a3542f; }

/* 기본 버튼 */
.btn-primary {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 13px;
  background: #c2683f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 12px 26px -14px rgba(194,104,63,.6);
  transition: background .15s;
}
.btn-primary:hover { background: #b45f3d; }

.alt-link {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: #8a857c;
}
.alt-link a {
  color: #2b2a26;
  font-weight: 700;
  text-decoration: none;
}
.alt-link a:hover { color: #b45f3d; }

.auth-legal {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #a8a296;
  text-align: center;
  line-height: 1.6;
}
.auth-legal a {
  color: #8a857c;
  text-decoration: underline;
}

/* ─────────── 오른쪽 미리보기 ─────────── */
.preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #f7f3ea, #efe6d6);
  box-shadow: inset 0 0 0 1px #eae0cf;
  display: flex;
  flex-direction: column;
  padding: 46px;
}
.preview-header {
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #7a7266;
  background: #fff;
  border: 1px solid #ece3d3;
  border-radius: 99px;
  padding: 7px 13px;
  box-shadow: 0 4px 12px -6px rgba(90,64,42,.2);
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: #2fa96a;
  animation: pulseDot 1.8s infinite;
}
.scene-title {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 600;
  color: #2b2a26;
  letter-spacing: -.02em;
  line-height: 1.4;
  white-space: pre-line;
  min-height: 62px;
}

.scene-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 448px;
  width: 100%;
}
.scene { display: flex; flex-direction: column; gap: 14px; }
.scene[hidden] { display: none; }

/* 채팅 버블 */
.chat-bubble {
  max-width: 90%;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 46px;
}
.chat-bubble--user {
  align-self: flex-end;
  background: #c2683f;
  color: #fff;
  border-radius: 16px 16px 5px 16px;
  box-shadow: 0 10px 26px -14px rgba(194,104,63,.55);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: rgba(255,255,255,.9);
  vertical-align: -3px;
  margin-left: 1px;
  animation: blink 1s step-end infinite;
}
.caret--dark { background: #c2683f; height: 14px; vertical-align: -2px; }

/* AI 카드 */
.ai-row {
  align-self: flex-start;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 94%;
  animation: cardIn .45s ease both;
}
.ai-row[hidden] { display: none; }
.ai-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #f3d8cc;
  color: #c2683f;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.ai-avatar--sm { width: 26px; height: 26px; font-size: 10px; margin-top: 0; }
.ai-card {
  flex: 1;
  background: #fff;
  border: 1px solid #efe6d6;
  border-radius: 5px 16px 16px 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px -18px rgba(90,64,42,.35);
}
.ai-card__text {
  font-size: 13.5px;
  color: #3a3733;
  line-height: 1.55;
}
.ai-card__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2b2a26;
  margin-bottom: 10px;
}

.event-card {
  margin-top: 11px;
  border: 1px solid #f0e7d8;
  border-radius: 12px;
  padding: 11px 13px;
  background: #fbf8f2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.event-card__bar {
  width: 8px; height: 26px;
  border-radius: 99px;
  background: #c2683f;
  flex: none;
}
.event-card__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2b2a26;
}
.event-card__meta {
  font-size: 12px;
  color: #8a857c;
  margin-top: 2px;
}

.btn-row { display: flex; gap: 8px; margin-top: 11px; }
.btn-row[hidden] { display: none; }
.chip {
  font-size: 12.5px;
  border-radius: 9px;
  padding: 7px 14px;
}
.chip--primary { font-weight: 700; color: #fff; background: #c2683f; }
.chip--muted { font-weight: 600; color: #7a7266; background: #f3ede2; }
.chip--sms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c2683f;
  background: #f8e3d9;
  border-radius: 99px;
  padding: 6px 12px;
}

.ok-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: #eaf6ee;
  border: 1px solid #cdebd6;
  border-radius: 10px;
  padding: 9px 12px;
  animation: cardIn .4s ease both;
}
.ok-row[hidden] { display: none; }
.ok-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #2fa96a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.ok-row span:last-child {
  font-size: 12.5px;
  font-weight: 700;
  color: #1f7a4d;
}

/* 작업 카드 (delegate/module/request) */
.task-card {
  background: #fff;
  border: 1px solid #efe6d6;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 34px -20px rgba(90,64,42,.4);
  animation: cardIn .45s ease both;
}
.task-card__head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.task-card__bar {
  width: 8px; height: 38px;
  border-radius: 99px;
  background: #c9c2b4;
  flex: none;
  transition: background .3s;
}
.task-card__bar--accent { background: #c2683f; }
.task-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #2b2a26;
}
.task-card__meta {
  font-size: 12.5px;
  color: #8a857c;
  margin-top: 3px;
}
.task-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}
.owner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.owner__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #dfe4ee;
  color: #5b6b93;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .3s, color .3s;
}
.owner__avatar.is-ai { background: #f3d8cc; color: #c2683f; }
.owner__label {
  font-size: 13px;
  font-weight: 600;
  color: #4a463f;
}
.task-btn {
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 9px;
  padding: 8px 15px;
  background: #c2683f;
  color: #fff;
  transition: all .2s;
}
.task-btn.is-press { transform: scale(.94); box-shadow: 0 0 0 4px rgba(194,104,63,.22); }
.task-btn.is-run,
.task-btn.is-done { background: #f3ede2; color: #a89f90; }

.prog-block { margin-top: 15px; }
.prog-block[hidden] { display: none; }
.prog-block__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #8a857c;
  margin-bottom: 6px;
}
.mono { font-family: 'SF Mono', Consolas, monospace; }
.prog-track {
  height: 7px;
  border-radius: 99px;
  background: #f0e7d8;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e0834f, #c2683f);
  width: 0%;
  transition: width .1s linear;
}

.module-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}
.module-row__hint {
  font-size: 12px;
  color: #a29a8c;
}

/* 랭킹 리스트 */
.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #f2ece0;
  font-size: 13px;
  color: #3a3733;
}
.rank-pos {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rank-pos__n {
  font-size: 13px;
  font-weight: 800;
  color: #2b2a26;
}
.rank-pos__n--top { color: #c2683f; }
.rank-pos__up {
  font-size: 11.5px;
  font-weight: 700;
  color: #2fa96a;
}
.rank-pos__flat {
  font-size: 11.5px;
  font-weight: 600;
  color: #a29a8c;
}

/* 사진 세탁 */
.photo-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}
.photo-col {
  flex: 1;
  text-align: center;
}
.photo-tile {
  height: 78px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.photo-tile--orig { background: linear-gradient(135deg, #d3dae6, #e9eef4); }
.photo-tile--processing {
  border: 1.5px dashed #e0d5c2;
  background: #faf6ef;
  font-size: 11.5px;
  color: #a29a8c;
}
.photo-tile--clean {
  background: linear-gradient(135deg, #dceae0, #f0f6ef);
  box-shadow: 0 0 0 2px #c2683f;
  animation: cardIn .4s ease both;
}
.photo-tile[hidden] { display: none; }
.photo-tile__badge {
  position: absolute;
  top: 5px; right: 5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #2fa96a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.photo-arrow {
  font-size: 16px;
  color: #c2b8a6;
  flex: none;
}
.photo-cap {
  font-size: 11px;
  color: #a29a8c;
  margin-top: 6px;
}
.photo-cap[hidden] { display: none; }
.photo-cap--done { color: #1f7a4d; font-weight: 700; }

/* 충돌 감지 */
.detect-card {
  background: #fff;
  border: 1px solid #efe6d6;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 34px -20px rgba(90,64,42,.4);
  animation: cardIn .45s ease both;
}
.detect-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.detect-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fde7e2;
  color: #c2683f;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.detect-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b2a26;
}
.detect-list {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f4d9d0;
  background: #fdf4f1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #3a3733;
}
.detect-time {
  font-size: 12px;
  font-weight: 700;
  color: #c2683f;
}
.detect-suggest {
  margin-top: 13px;
}
.detect-suggest[hidden] { display: none; }
.suggest-box {
  flex: 1;
  background: #fbf8f2;
  border: 1px solid #f0e7d8;
  border-radius: 12px;
  padding: 11px 13px;
}
.suggest-text {
  font-size: 13px;
  color: #3a3733;
  line-height: 1.5;
}
.suggest-text b { color: #2b2a26; }

/* 브리핑 */
.brief-list {
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.brief-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #3a3733;
  animation: cardIn .4s ease both;
}
.brief-item[hidden] { display: none; }
.brief-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: #c2683f;
  flex: none;
}

/* 요청 */
.req-note {
  margin-top: 13px;
  font-size: 12.5px;
  color: #a29a8c;
  background: #faf6ef;
  border: 1px dashed #e6dcc9;
  border-radius: 10px;
  padding: 9px 12px;
}
.req-block { margin-top: 13px; }
.req-block__label {
  font-size: 12px;
  font-weight: 700;
  color: #7a7266;
  margin-bottom: 7px;
}
.req-box {
  border: 1.5px solid #ece3d3;
  border-radius: 12px;
  background: #fbf8f2;
  padding: 11px 13px;
  min-height: 42px;
  font-size: 13px;
  color: #3a3733;
  line-height: 1.5;
}

/* 비밀번호 강도 (회원가입) */
.pw-strength {
  height: 4px;
  background: #f0e7d8;
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength__bar {
  height: 100%;
  width: 0%;
  transition: all .3s;
  background: #c2683f;
}
.pw-strength__bar.is-weak { width: 33%; background: #d94a4a; }
.pw-strength__bar.is-medium { width: 66%; background: #e0a545; }
.pw-strength__bar.is-strong { width: 100%; background: #2fa96a; }
.field__hint {
  font-size: 12px;
  color: #a29a8c;
  margin-top: 6px;
}

/* 반응형 */
@media (max-width: 900px) {
  .auth-right { display: none; }
  .auth-left { padding: 32px 24px; }
}
