/* ==========================================================================
   Meatwin 인증 화면 (로그인 등) - index.html 의 히어로/기능 소개 디자인과 통일
   ========================================================================== */

.mw-auth {
  --mw-auth-navy: #475a8e;   /* 기능 소개 반전 블록과 같은 남색 */
  --mw-auth-blue: #2563eb;
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 128px 24px 72px; /* 고정 헤더(68px) 보정 */
  background: #f8fafc;
  box-sizing: border-box;
  letter-spacing: -0.02em;
}
.mw-auth *, .mw-auth *::before, .mw-auth *::after { box-sizing: border-box; }
.mw-auth p { margin: 0; }
.mw-auth ul { margin: 0; padding: 0; }

/* 배경: 히어로와 같은 점무늬 + 은은한 빛 */
.mw-auth__bg { position: absolute; inset: 0; pointer-events: none; }
.mw-auth__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 55%, transparent 100%);
}
.mw-auth__bg::after {
  content: "";
  position: absolute;
  top: -10%;
  right: 8%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 70%);
  filter: blur(50px);
}

/* 카드 (좌: 소개 / 우: 로그인 폼) */
.mw-auth__card {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 30px 70px -25px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

/* 좌측 소개 패널 */
.mw-auth__intro {
  position: relative;
  overflow: hidden;
  padding: 56px 44px;
  background: var(--mw-auth-navy);
  color: #ffffff;
}
.mw-auth__intro::before { /* 헤더/푸터와 같은 로고 'M' 장식 */
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 340px;
  height: 327px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 50'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.5 6.5L9.2 42.3M11.5 6.5L26 37.6L39.6 6.5M39.6 6.5L42.8 42.3'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='11.5' cy='6.5' r='5.4'/%3E%3Ccircle cx='39.6' cy='6.5' r='5.4'/%3E%3Ccircle cx='8.9' cy='42.4' r='5'/%3E%3Ccircle cx='43' cy='42.3' r='5.1'/%3E%3Ccircle cx='26' cy='37.6' r='5.3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(18deg);
  opacity: 0.08;
  filter: blur(1.5px);
  pointer-events: none;
}
.mw-auth__intro > * { position: relative; }
.mw-auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  color: #dbeafe;
}
.mw-auth__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.mw-auth__headline {
  margin: 22px 0 14px;
  font-family: 'Noto Sans KR', sans-serif !important; /* mw-style.css 의 h1~h6 Roboto 강제 지정 회피 */
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.mw-auth__headline em { font-style: normal; color: #7dd3fc; }
.mw-auth__lead { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }
.mw-auth__points { margin-top: 32px !important; display: grid; gap: 12px; list-style: none; }
.mw-auth__points li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.mw-auth__points svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(125, 211, 252, 0.18); color: #7dd3fc; }

/* 우측 로그인 폼 */
.mw-auth__form-wrap { padding: 52px 48px 40px; }
.mw-auth__logo img { display: block; height: 40px; width: auto; }
.mw-auth__title {
  margin: 26px 0 6px;
  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.mw-auth__subtitle { font-size: 14px; color: #64748b; margin-bottom: 28px !important; }

.mw-auth__field { position: relative; margin-bottom: 12px; }
.mw-auth__field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.mw-auth__input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.mw-auth__input::placeholder { color: #94a3b8; }
.mw-auth__input:focus { border-color: var(--mw-auth-blue); background: #ffffff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.mw-auth__field:focus-within svg { color: var(--mw-auth-blue); }

.mw-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 24px;
  font-size: 14px;
}
.mw-auth__check { display: inline-flex; align-items: center; gap: 8px; color: #475569; cursor: pointer; user-select: none; }
.mw-auth__check input { width: 17px; height: 17px; margin: 0; accent-color: var(--mw-auth-blue); cursor: pointer; }
.mw-auth a.mw-auth__link, .mw-auth a.mw-auth__link:visited { color: #64748b; text-decoration: none; }
.mw-auth a.mw-auth__link:hover { color: var(--mw-auth-blue); text-decoration: underline; }

.mw-auth__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mw-auth a.mw-auth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.mw-auth a.mw-auth__btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mw-auth a.mw-auth__btn--admin {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55);
}
.mw-auth a.mw-auth__btn--user {
  background: var(--mw-auth-navy);
  box-shadow: 0 8px 20px -6px rgba(71, 90, 142, 0.55);
}

.mw-auth__alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  animation: mwAuthAlertIn 0.4s ease;
}
.mw-auth__alert[hidden] { display: none; }
.mw-auth__alert svg { flex: 0 0 18px; width: 18px; height: 18px; }
@keyframes mwAuthAlertIn {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: none; }
}

.mw-auth__join {
  margin-top: 28px !important;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}
.mw-auth a.mw-auth__join-link, .mw-auth a.mw-auth__join-link:visited { margin-left: 6px; font-weight: 700; color: var(--mw-auth-blue); text-decoration: none; }
.mw-auth a.mw-auth__join-link:hover { text-decoration: underline; }

/* 반응형 */
@media (max-width: 800px) {
  .mw-auth { padding: 100px 20px 56px; min-height: 0; }
}
@media (max-width: 860px) {
  .mw-auth__card { grid-template-columns: 1fr; max-width: 480px; }
  .mw-auth__intro { display: none; }
}
@media (max-width: 480px) {
  .mw-auth { padding: 84px 16px 48px; }
  .mw-auth__form-wrap { padding: 36px 22px 28px; }
  .mw-auth__title { font-size: 22px; }
  .mw-auth__buttons { grid-template-columns: 1fr; }
}

/* ==========================================================================
   공용 부품: 회원가입 / 아이디·비밀번호 찾기 등 한 칸짜리 폼 화면
   ========================================================================== */
.mw-auth__card--single { display: block; max-width: 820px; }
.mw-auth__card--narrow { max-width: 560px; }
.mw-auth__card--single .mw-auth__form-wrap { padding: 48px 56px 44px; }

.mw-auth__head { text-align: center; margin-bottom: 28px; }
.mw-auth__head .mw-auth__logo { display: inline-block; }
.mw-auth__head .mw-auth__title { margin-top: 20px; font-size: 28px; }
.mw-auth__head .mw-auth__subtitle { margin-bottom: 0 !important; }
.mw-auth__head--tight .mw-auth__title { margin-top: 0; } /* 회원가입: 제목 위 여백 축소 */
@media (min-width: 801px) { /* 회원가입(PC): 헤더~카드 60→32px, 카드~제목 48→36px */
  .mw-auth--tight { padding-top: 100px; }
  .mw-auth--tight .mw-auth__card--single .mw-auth__form-wrap { padding-top: 36px; }
}

/* 안내 상자 */
.mw-auth__notice {
  margin: 0 0 8px !important;
  padding: 16px 18px 16px 20px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 14px;
  line-height: 1.7;
  color: #1e3a8a;
  list-style: none;
}
.mw-auth__notice li { position: relative; padding-left: 12px; }
.mw-auth__notice li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 4px; height: 4px; border-radius: 50%; background: #3b82f6; }
.mw-auth__notice--muted { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.mw-auth__notice--muted li::before { background: #94a3b8; }

/* 섹션 제목 */
.mw-auth__section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 16px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.mw-auth__section .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 13px;
}
.mw-auth__section small { margin-left: auto; font-size: 12px; font-weight: 500; color: #94a3b8; }

/* 2열 그리드 + 라벨 */
.mw-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.mw-auth__grid .full { grid-column: 1 / -1; }
.mw-auth__label { display: block; margin-bottom: 8px !important; font-size: 14px; font-weight: 600; color: #334155; }
.mw-auth__label .req { color: #ef4444; margin-left: 2px; }
.mw-auth__label small { margin-left: 4px; font-weight: 400; color: #94a3b8; }
.mw-auth__input--plain { padding-left: 16px; }

/* 입력칸 + 확인 버튼 한 줄 */
.mw-auth__inline { display: flex; align-items: center; gap: 8px; }
.mw-auth__inline .mw-auth__input { flex: 1 1 auto; min-width: 0; }
.mw-auth__inline .sep { color: #94a3b8; }
.mw-auth__inline .mw-auth__input.w-3 { flex: 0 0 76px; }
.mw-auth__inline .mw-auth__input.w-2 { flex: 0 0 62px; }
.mw-auth__inline .mw-auth__input.w-5 { flex: 1 1 96px; }
.mw-auth__inline--half { max-width: calc((100% - 20px) / 2); } /* 아이디+중복확인: 아래 비밀번호 한 칸 폭 */
.mw-auth a.mw-auth__btn-sub, .mw-auth a.mw-auth__btn-sub:visited {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.mw-auth a.mw-auth__btn-sub:hover { background: #e0e7ff; }

/* 확인 결과 표시칸 (JS 가 value 와 글자색을 바꿈) */
.mw-auth__status {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  -webkit-text-fill-color: currentColor; /* disabled 상태에서도 글자색 유지 */
  opacity: 1;
}
.mw-auth__status:placeholder-shown { height: 0; margin: 0; }

/* 회원유형 선택 (라디오) */
.mw-auth__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mw-auth__seg label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.mw-auth__seg label small { display: block; font-size: 12px; font-weight: 400; color: #94a3b8; }
.mw-auth__seg input { width: 18px; height: 18px; margin: 0; accent-color: #2563eb; }
.mw-auth__seg label:has(input:checked) { border-color: #2563eb; background: #ffffff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

/* 약관 */
.mw-auth__terms {
  display: block;
  width: 100%;
  height: 150px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
  resize: vertical;
}
.mw-auth__agree { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; color: #334155; cursor: pointer; }
.mw-auth__agree input { width: 18px; height: 18px; margin: 0; accent-color: #2563eb; }

/* 큰 단일 버튼 */
.mw-auth a.mw-auth__btn--block { width: 100%; margin-top: 32px; height: 56px; font-size: 16px; }

/* 탭 (CSS 라디오 탭) */
.mw-auth__tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.mw-auth__tablist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 14px; background: #f1f5f9; margin-bottom: 24px; }
.mw-auth__tablist label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mw-auth__panel { display: none; }
#mw-tab-id:checked ~ .mw-auth__tablist label[for="mw-tab-id"],
#mw-tab-pw:checked ~ .mw-auth__tablist label[for="mw-tab-pw"] { background: #ffffff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
#mw-tab-id:checked ~ #mw-panel-id,
#mw-tab-pw:checked ~ #mw-panel-pw { display: block; }
.mw-auth__panel-desc { margin-bottom: 18px !important; font-size: 14px; color: #64748b; }
.mw-auth__stack { display: grid; gap: 16px; }

@media (max-width: 860px) {
  .mw-auth__card--single .mw-auth__form-wrap { padding: 40px 32px 36px; }
}
@media (max-width: 600px) {
  .mw-auth__card--single .mw-auth__form-wrap { padding: 32px 20px 28px; }
  .mw-auth__grid, .mw-auth__seg { grid-template-columns: 1fr; }
  .mw-auth__head .mw-auth__title { font-size: 24px; }
  .mw-auth__inline { flex-wrap: wrap; }
  .mw-auth__inline--half { max-width: none; }
  .mw-auth__inline .mw-auth__input { flex-basis: 100%; }
  .mw-auth__inline--sano .mw-auth__input { flex-basis: auto; }
  .mw-auth a.mw-auth__btn-sub { flex: 1 1 100%; }
}

/* ---------- 공통 CSS 충돌 보정 ---------- */
/* mw-style.css / mw-responsive.css 의 input[type=text] { border: solid } 보다 우선 */
.mw-auth input.mw-auth__input { border: 1px solid #e2e8f0; }
.mw-auth input.mw-auth__input:focus { border-color: var(--mw-auth-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.mw-auth input.mw-auth__status { border: 0; box-shadow: none; }
/* .mw-auth ul { padding: 0 } 보다 우선 */
.mw-auth ul.mw-auth__notice { padding: 16px 18px 16px 20px; }
/* mw-style.css 의 h1~h6 Roboto 강제 지정 회피 */
.mw-auth__section { font-family: 'Noto Sans KR', sans-serif !important; }
