/* ══════════════════════════════════
   BLOOM — AUTH CSS (Login & Signup)
══════════════════════════════════ */

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
}

/* ─── LEFT PANEL ─── */
.auth-left {
  background: var(--ink); padding: 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.15) 0%, transparent 70%);
}
.auth-left h2 {
  font-size: clamp(32px, 3vw, 48px); color: white;
  line-height: 1.12; margin-bottom: 20px; position: relative; z-index: 1;
}
.auth-left h2 em { font-style: italic; color: var(--terracotta); }
.auth-left p {
  font-size: 16px; color: rgba(255,255,255,.5); line-height: 1.7;
  font-weight: 300; position: relative; z-index: 1; max-width: 400px;
}

.auth-testimonial {
  margin-top: 60px; padding: 28px;
  background: rgba(255,255,255,.07);
  border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.1);
  position: relative; z-index: 1;
}
.auth-testimonial p {
  font-size: 15px; color: rgba(255,255,255,.8);
  line-height: 1.65; font-style: italic;
}
.auth-testimonial cite {
  display: block; margin-top: 16px;
  font-size: 13px; color: rgba(255,255,255,.4); font-style: normal;
}

/* ─── RIGHT PANEL ─── */
.auth-right {
  background: var(--paper); padding: 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-right .inner { max-width: 400px; width: 100%; }
.auth-right h3 { font-size: 30px; margin-bottom: 8px; }
.auth-right .sub { font-size: 15px; color: var(--ink-60); margin-bottom: 40px; font-weight: 300; }
.auth-right .sub2 { font-size: 15px; color: var(--ink-60); margin-bottom: 10px; font-weight: 300; }

/* ─── ROLE TOGGLE ─── */
.role-toggle {
  display: flex; gap: 0; background: var(--ink-10);
  border-radius: var(--r-md); padding: 4px; margin-bottom: 28px;
}
.role-btn {
  flex: 1; padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-60);
  transition: all .2s var(--ease); cursor: pointer; border: none; background: transparent;
}
.role-btn.active { background: white; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ─── FORM ─── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-60); margin-bottom: 7px; letter-spacing: .3px;
}
.field input,
.field select {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--ink-10); background: white;
  font-size: 14px; color: var(--ink); outline: none;
  transition: all .2s var(--ease);
}
.field input:focus,
.field select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(79,70,229,.08);
}
.field input::placeholder { color: var(--ink-30); }
.field-hint { font-size: 11px; color: var(--ink-30); margin-top: 5px; }

/* ─── DIVIDER ─── */
.divider-line {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; font-size: 12px; color: var(--ink-30);
}
.divider-line::before,
.divider-line::after {
  content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.08);
}

/* ─── SOCIAL ─── */
.social-row { display: flex; gap: 10px; }
.social-btn {
  flex: 1; padding: 11px; border-radius: 12px;
  border: 1.5px solid var(--ink-10); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .2s var(--ease); color: var(--ink); cursor: pointer; background: white;
}
.social-btn:hover { border-color: var(--terracotta); background: var(--terra-lt); }

/* ─── SWITCH LINK ─── */
.auth-switch { text-align: center; margin-top: 24px; font-size: 13px; color: var(--ink-60); }
.auth-switch a { color: var(--terracotta); font-weight: 600; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── STEP BAR (signup) ─── */
.step-bar { display: flex; gap: 6px; margin-bottom: 32px; }
.sdot {
  height: 4px; flex: 1; border-radius: 2px;
  background: var(--ink-10); transition: all .3s;
}
.sdot.active { background: var(--terracotta); }
.sdot.done   { background: var(--sage); }

/* ─── STYLE CHIPS (signup step 3) ─── */
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.style-chip {
  padding: 8px 16px; border-radius: var(--r-full);
  border: 1.5px solid rgba(0,0,0,.1);
  font-size: 13px; font-weight: 500; color: var(--ink-60);
  cursor: pointer; transition: all .2s var(--ease); background: white;
}
.style-chip.active { background: var(--terra-lt); border-color: var(--terracotta); color: var(--terracotta); font-weight: 600; }

/* ─── STEP COMPLETE BOX ─── */
.complete-box {
  background: var(--ink-10); border-radius: var(--r-lg);
  padding: 20px; text-align: left; margin-bottom: 24px;
}
.complete-box-label { font-size: 12px; color: var(--ink-60); margin-bottom: 12px; font-weight: 600; }
.complete-item {
  font-size: 14px; color: var(--ink); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.complete-item:last-child { margin-bottom: 0; }
.complete-item .check { color: var(--sage); }

/* ──────────────────────────────────
   RESPONSIVE — AUTH
────────────────────────────────── */

/* ── 태블릿 ── */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left   { display: none; }
  .auth-right  {
    padding: 48px 40px;
    min-height: calc(100vh - var(--nav-h));
    display: flex; align-items: center; justify-content: center;
  }
  .auth-right .inner { max-width: 460px; width: 100%; }

  /* 역할 토글 터치 최적화 */
  .role-btn { padding: 12px 16px; min-height: 44px; }

  /* 소셜 버튼 */
  .social-btn { padding: 13px; min-height: 44px; }
}

/* ── 소형 태블릿 ── */
@media (max-width: 768px) {
  .auth-right { padding: 40px 32px; }
  .auth-right h3 { font-size: 26px; }
  .auth-right .sub { font-size: 14px; margin-bottom: 32px; }
}

/* ── 모바일 ── */
@media (max-width: 640px) {
  .auth-right { padding: 32px 20px calc(var(--bottom-nav-h) + 20px); }
  .auth-right h3 { font-size: 24px; }
  .auth-right .sub { font-size: 14px; margin-bottom: 28px; }
  .form-row { grid-template-columns: 1fr; }

  /* 입력 필드 모바일 최적화 */
  .field input,
  .field select {
    padding: 14px 16px;
    font-size: 16px; /* iOS zoom 방지 */
    border-radius: 14px;
  }
  .field label { font-size: 12px; margin-bottom: 6px; }

  /* 역할 토글 */
  .role-toggle { margin-bottom: 24px; }
  .role-btn { font-size: 13px; padding: 11px 14px; }

  /* 소셜 로그인 */
  .social-row { flex-direction: column; }
  .social-btn { width: 100%; justify-content: center; padding: 14px; }

  /* 스텝바 */
  .step-bar { margin-bottom: 24px; }

  /* 스타일 칩 */
  .style-chips { gap: 6px; }
  .style-chip { padding: 10px 14px; font-size: 13px; }
}

/* ── 초소형 모바일 ── */
@media (max-width: 360px) {
  .auth-right { padding: 24px 16px calc(var(--bottom-nav-h) + 16px); }
  .auth-right h3 { font-size: 22px; }
  .role-btn { font-size: 12px; padding: 10px 10px; }
  .style-chip { padding: 8px 12px; font-size: 12px; }
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}

/* 공통 버튼 높이 통일 */
.step-actions button {
  height: 56px;
  padding: 0 24px;
  border-radius: 28px; /* pill 형태 */
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* 이전 버튼 */
.btn-signup-ghost {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  min-width: 120px;
}

.btn-signup-ghost:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #222;
}

/* 기존 submit 버튼과 균형 맞추기 */
.step-actions .btn-submit,
.step-actions .btn-submit-terra {
  min-width: 100px;
}

@media (max-width:640px){
  .step-actions{
    flex-direction:column;
  }

  .step-actions button{
    width:100%;
    min-height: 48px;
  }
}

@media (max-width:360px){
  .step-actions button{
    height: 48px;
    font-size: 14px;
    padding: 0 16px;
  }
}