/**
 * /new/login · /new/register 전용 인증 페이지 CSS.
 *
 * 무엇: 캔바·노션 스타일 좌측 브랜드 그라데이션 패널 + 우측 폼 2-컬럼 레이아웃.
 * 왜: 기존 /login(메인 사이트 보라 톤)과 시각 격리, /new 디자인 토큰 재사용.
 * 연관: app/Views/new/login.php, app/Views/new/register.php, new/css/canva-saas.css
 * 격리: .new-auth-* 네임스페이스 — _admin.css · _user_light.css 변경 0.
 */

/* ─── 페이지 리셋 ─── */
.new-auth-page {
  min-height: 100vh;
  background: #FFFFFF;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--new-heading);
  margin: 0;
}

.new-auth-page *, .new-auth-page *::before, .new-auth-page *::after {
  box-sizing: border-box;
}

/* ─── 2-컬럼 셸 ─── */
.new-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ─── 좌측: 브랜드 그라데이션 패널 ─── */
.new-auth-brand {
  background: var(--new-gradient);
  color: #FFFFFF;
  padding: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.new-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
}
.new-auth-logo i { font-size: 22px; }

.new-auth-brand-content {
  margin: auto 0;
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.new-auth-brand-content h1 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.new-auth-brand-content > p {
  font-size: 16px;
  opacity: 0.95;
  margin: 0 0 32px;
  line-height: 1.6;
}

.new-auth-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-auth-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  opacity: 0.95;
}

.new-auth-trust li i { font-size: 18px; flex-shrink: 0; }

/* 브랜드 패널 장식 원형 */
.new-auth-deco {
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
  pointer-events: none;
}

.new-auth-deco::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

/* ─── 우측: 폼 영역 ─── */
.new-auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.new-auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* 모바일 전용 로고 (데스크탑에서 숨김) */
.new-auth-mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  background: var(--new-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.new-auth-mobile-logo i {
  background: var(--new-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 22px;
}

/* ─── 폼 헤더 ─── */
.new-auth-head { margin-bottom: 28px; }

.new-auth-head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--new-heading);
}

.new-auth-head p {
  font-size: 15px;
  color: var(--new-body);
  margin: 0;
}

/* ─── 에러 배너 ─── */
.new-auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.new-auth-error i { font-size: 18px; flex-shrink: 0; }

/* ─── 폼 필드 ─── */
.new-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.new-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.new-auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--new-body);
}

.new-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.new-auth-input-icon {
  position: absolute;
  left: 16px;
  color: var(--new-muted);
  font-size: 18px;
  pointer-events: none;
}

.new-auth-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  border: 1.5px solid var(--new-border);
  border-radius: 12px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  color: var(--new-heading);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.new-auth-input-wrap input:focus {
  border-color: var(--new-primary);
  box-shadow: 0 0 0 4px rgba(125,103,73, 0.15);
  outline: none;
}

/* 비밀번호 토글 버튼 */
.new-auth-toggle-pw {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--new-muted);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  font-size: 18px;
}

.new-auth-toggle-pw:hover {
  background: var(--new-surface);
  color: var(--new-primary);
}

/* ─── 기억하기 + 링크 행 ─── */
.new-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
}

.new-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--new-body);
  cursor: pointer;
}

.new-auth-remember input {
  accent-color: var(--new-primary);
  width: auto;
  height: auto;
}

/* ─── 링크 ─── */
.new-auth-link {
  color: var(--new-primary);
  text-decoration: none;
  font-size: 14px;
}

.new-auth-link:hover { text-decoration: underline; }
.new-auth-link-bold { font-weight: 700; }

/* ─── 제출 버튼 ─── */
.new-auth-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  justify-content: center;
}

/* ─── 구분선 ─── */
.new-auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--new-muted);
  margin: 24px 0 20px;
  position: relative;
}

.new-auth-divider::before,
.new-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 32px);
  height: 1px;
  background: var(--new-border);
}

.new-auth-divider::before { left: 0; }
.new-auth-divider::after  { right: 0; }

/* ─── 대안 텍스트 (가입 링크 등) ─── */
.new-auth-alt {
  text-align: center;
  font-size: 15px;
  color: var(--new-body);
  margin: 0;
}

/* ─── 페이지 하단 네비 ─── */
.new-auth-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--new-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.new-auth-foot a {
  color: var(--new-muted);
  text-decoration: none;
}

.new-auth-foot a:hover { color: var(--new-primary); }

/* ─── 이용약관 동의 체크 ─── */
.new-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--new-body);
  cursor: pointer;
  line-height: 1.5;
}

.new-auth-terms input {
  accent-color: var(--new-primary);
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
  height: auto;
}

.new-auth-terms a {
  color: var(--new-primary);
  text-decoration: none;
}

.new-auth-terms a:hover { text-decoration: underline; }

/* ─── 준비 중 안내 배너 ─── */
.new-auth-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.new-auth-notice i { font-size: 18px; flex-shrink: 0; }

/* ─── 반응형 ─── */

/* 태블릿: 브랜드 패널 숨김, 모바일 로고 노출 */
@media (max-width: 900px) {
  .new-auth-shell { grid-template-columns: 1fr; }
  .new-auth-brand { display: none; }
  .new-auth-mobile-logo { display: inline-flex; }
}

@media (max-width: 480px) {
  .new-auth-form-side { padding: 32px 24px; }
}

/* ─── 접근성 ─── */
.new-auth-input-wrap input:focus-visible,
.new-auth-submit:focus-visible,
.new-auth-toggle-pw:focus-visible {
  outline: 3px solid var(--new-primary);
  outline-offset: 2px;
}

/* ─── 모션 축소 선호 ─── */
@media (prefers-reduced-motion: reduce) {
  .new-auth-input-wrap input,
  .new-btn-primary,
  .new-auth-toggle-pw {
    transition: none !important;
  }
}
