body.auth-body {
    background-color: #F5F5F5;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 20px 30px;
}

/* ============================================================
   전체 페이지 래퍼 (로고 + 카드 + 하단 링크)
   ============================================================ */
.join-page-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* ============================================================
   카드 래퍼 (사이드 버튼 기준점)
   ============================================================ */
.register-container {
    width: 100%;
    position: relative;
}

/* ============================================================
   카드 본체
   ============================================================ */
.register-form-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    padding: 33px 30px 27px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ============================================================
   스텝 공통 (flex 컬럼 → 버튼 하단 고정)
   ============================================================ */
.wizard-step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

/* ============================================================
   타이틀
   ============================================================ */
.register-form-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

/* ============================================================
   폼 그룹
   ============================================================ */
.form-group {
    position: relative;
    margin-bottom: 14px;
    width: 100%;
    font-size: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.required {
    color: #FF4D4F;
    margin-left: 1px;
}

/* ============================================================
   인풋
   ============================================================ */
.form-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    font-size: 13px;
    color: #222;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: #C5C5C5;
    font-size: 12px;
}

.form-input:focus {
    border-color: #FFB300;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.12);
}

.form-input[readonly],
.form-input:disabled {
    background-color: #F7F7F7;
    color: #AAAAAA;
    border-color: #EBEBEB;
    cursor: default;
}

.form-input.input-error {
    border-color: #FF4D4F !important;
    background-color: #FFF5F5;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.08);
}

/* ============================================================
   에러 텍스트
   ============================================================ */
.error-text {
    display: none;
    color: #FF4D4F;
    font-size: 12px;
    margin-top: 6px;
    padding-left: 2px;
    line-height: 1.4;
}

/* ============================================================
   비밀번호 눈 아이콘
   ============================================================ */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-wrapper .bi {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #C0C0C0;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.password-wrapper .bi:hover {
    color: #888;
}

/* ============================================================
   타이머 (Step2 인증번호 우측)
   ============================================================ */
.timer-input-wrap {
    position: relative;
}

.timer-input-wrap .form-input {
    padding-right: 48px;
}

.timer-display {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF4D4F;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    letter-spacing: 0.3px;
}

/* ============================================================
   하단 버튼 (margin-top: auto 로 하단 고정)
   ============================================================ */
.register-button {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: auto;
    letter-spacing: -0.2px;
    -webkit-appearance: none;
}

.register-button:active {
    transform: scale(0.99);
}

.primary-btn {
    background-color: #FFB300;
    color: #333;
}

.primary-btn:hover {
    background-color: #FFA500;
}

/* ============================================================
   약관 동의 섹션 (Step3)
   ============================================================ */
.agreement-section {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
    margin-bottom: 15px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check:last-child {
    margin-bottom: 0;
}

.all-agree-check {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.all-agree-check .form-check-label {
    font-size: 12px;
    font-weight: 700;
    color: #222;
}

/* 커스텀 체크박스 */
.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 1.5px solid #DDDDDD;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
    transition: background-color 0.15s, border-color 0.15s;
    position: relative;
}

.form-check-input:checked {
    background-color: #FFB300;
    border-color: #FFB300;
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-check-label {
    font-size: 12px;
    color: #444;
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
}

/* 보기 링크 */
.terms-view-link {
    font-size: 11px;
    color: #FFB300;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.terms-view-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================================
   하단 로그인 링크
   ============================================================ */
.join-footer {
    margin-top: 15px;
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.join-footer a {
    color: #E9A000;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

.join-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 520px) {
    body.auth-body {
        padding: 24px 16px 24px;
    }

    .register-form-container {
        padding: 28px 20px 22px;
        min-height: 420px;
        border-radius: 8px;
    }

    .register-form-title {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .form-input {
        height: 38px;
        font-size: 12px;
    }

    .register-button {
        height: 40px;
        font-size: 12px;
    }
}
