 :root {
     --page-bg: #ffffff;
     --surface: #f7fafc;
     --surface-alt: #e8edf2;
     --border: #cfdbe8;
     --text-strong: #0d141c;
     --text-muted: #4d7399;
     --brand: #1280ed;
     --white: #ffffff;
     --radius: 8px;
     --container-max: 960px;
     --form-max: 520px;
     --gap-lg: 20px;
     --gap-md: 16px;
     --gap-sm: 12px;
     --pad-x: 16px;

     --seg-radius: var(--radius);
     /* radius 유지 */
     --seg-primary: var(--brand);
     /* 컬러 유지 */
     --seg-border: var(--border);
     /* 기존 테두리 컬러 */
     --seg-text: var(--text-strong);
     /* 기존 텍스트 컬러 */
 }

 * {
     box-sizing: border-box;
 }

 body {
     margin: 0;
     background: var(--page-bg);
     color: var(--text-strong);
     font-family: "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
     line-height: 1.5;
 }

 .container {
     max-width: var(--container-max);
     margin: 0 auto;
     padding: 0 var(--pad-x);
 }

 .section {
     padding: 20px 0;
 }

 /* 헤더 */
 .section-signup-header h1 {
     margin: 0 0 12px 0;
     font-size: 28px;
     line-height: 35px;
     font-weight: 700;
     text-align: center;
 }

 /* 폼 레이아웃 */
 .signup-form-wrap {
     display: flex;
     justify-content: center;
 }

 .signup-form {
     width: 100%;
     max-width: var(--form-max);
     display: grid;
     gap: 8px;
 }

 /* field: input + msg 컨테이너 */
 .field {
     display: grid;
     gap: 6px;
 }

 /* label은 접근성용 (시각 숨김) */
 .field label {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     white-space: nowrap;
     border: 0;
 }

 /* input 기본 박스 */
 .field input {
     width: 100%;
     min-height: 48px;
     padding: 0 16px;
     border-radius: var(--radius);
     border: 1px solid var(--border);
     background: var(--surface-alt);
     color: var(--text-strong);
     font: inherit;
     outline: 0;
 }

 .field input::placeholder {
     color: var(--text-muted);
 }

 .field input:focus {
     border-color: var(--brand);
     box-shadow: 0 0 0 3px rgba(18, 128, 237, 0.15);
 }

 /* 입력 하단 메시지 */
 .input-msg {
     display: block;
     min-height: 16px;
     /* 메시지 유무로 레이아웃 흔들림 방지 */
     font-size: 12px;
     padding: 0 4px;
     color: var(--text-muted);
 }

 .input-msg.ok {
     color: #2da44e;
 }

 .input-msg.err {
     color: #cf222e;
 }

 /* 동의 */
 .consent {
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     gap: 4px;
 }

 .consent input[type="checkbox"] {
     appearance: none;
     width: 20px;
     height: 20px;
     border: 2px solid var(--border);
     border-radius: 4px;
     display: inline-block;
     position: relative;
     background: #fff;
 }

 .consent input[type="checkbox"]:checked {
     background: var(--brand);
     border-color: var(--brand);
 }

 .consent input[type="checkbox"]:checked::after {
     content: "";
     position: absolute;
     left: 4px;
     width: 6px;
     height: 12px;
     border: solid #f7fafc;
     border-width: 0 2px 2px 0;
     transform: rotate(45deg);
 }

 .consent label {
     cursor: pointer;
 }

 .consent__links {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 12px;
 }

 .consent-link {
     background: none;
     border: none;
     padding: 0;
     color: var(--brand);
     font-size: 13px;
     cursor: pointer;
     text-decoration: underline;
     line-height: 1.4;
 }

 .consent-link:hover {
     color: #0b66c3;
     text-decoration: underline;
 }

 .consent-link:focus {
     outline: none;
     text-decoration: underline;
 }

 /* 제출 */
 .submit-row {
     display: flex;
     justify-content: center;
     padding: 12px 0;
 }

 .submit-button {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 84px;
     max-width: 480px;
     height: 40px;
     padding: 0 16px;
     border-radius: var(--radius);
     background: var(--brand);
     color: #f7fafc;
     text-decoration: none;
     font-weight: 700;
     font-size: 14px;
     border: 0;
     cursor: pointer;
 }

 .submit-button:visited {
     color: #f7fafc;
 }

 .submit-button:hover {
     filter: brightness(1.05);
 }

 .submit-button:active {
     filter: brightness(0.95);
 }

 .submit-button:disabled {
     opacity: 0.7;
     cursor: not-allowed;
 }

 .legal-note {
     text-align: center;
     color: var(--text-muted);
     font-size: 14px;
     margin: 4px 0 0 0;
 }

 /* 브라우저 기본 아이콘 숨김 */
 input[type="password"]::-ms-reveal,
 input[type="password"]::-ms-clear {
     display: none;
 }

 input::-webkit-credentials-auto-fill-button {
     visibility: hidden;
     display: none !important;
     pointer-events: none;
 }


 .seg {
     display: flex;
     width: 100%;
     border: 1px solid var(--seg-border);
     border-radius: var(--seg-radius);
     overflow: hidden;
     /* 둥근 모서리 깔끔하게 */
     background: #fff;
 }

 .seg__btn {
     flex: 1 1 50%;
     height: 48px;
     /* 필요하면 기존 버튼 높이에 맞춰 조정 */
     border: 0;
     background: transparent;
     color: var(--seg-text);
     font-weight: 600;
     cursor: pointer;
     user-select: none;
     outline: none;
 }

 /* 가운데 구분선(스샷처럼 얇게) */
 .seg__btn+.seg__btn {
     border-left: 1px solid var(--seg-border);
 }

 /* 활성(파란 배경 + 흰 글자) */
 .seg__btn.is-active {
     background: var(--seg-primary);
     color: #fff;
 }

 /* 접근성: 키보드 포커스 */
 .seg__btn:focus-visible {
     box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
 }

 .is-hidden {
     display: none !important;
 }

 /* 반응형 */
 @media (max-width: 640px) {
     .section-signup-header h1 {
         font-size: 24px;
         line-height: 32px;
     }
 }