@charset "UTF-8";

/* =====================================================
   회원가입 공통 스타일
   ===================================================== */

.registSection {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 160px 16px 80px;
    background: #f4f6f8;
}

.registCard {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 44px 44px 40px;
    width: 100%;
    max-width: 480px;
}

/* ── 헤더 ── */
.registHeader {
    text-align: center;
    margin-bottom: 32px;
}

.brandLogoImg {
    height: 44px;
    margin-bottom: 12px;
}

.registHeader img {
    height: 44px;
    margin-bottom: 12px;
}

.registHeader h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.registHeader p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* ── 입력 그룹 ── */
.registGroup {
    margin-bottom: 14px;
}

.registGroup label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.registGroup label .req {
    color: #20c997;
    margin-left: 2px;
}

.registInputRow {
    display: flex;
    gap: 8px;
}

.registInput {
    flex: 1;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fafafa;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.registInput:focus {
    border-color: #20c997;
    background: #fff;
}

.registInput::placeholder {
    color: #b0b8c1;
}

.registInput:disabled,
.registInput[readonly] {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ── 인라인 버튼 (이메일 인증, 인증하기) ── */
.registInlineBtn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 16px;
    background: #20c997;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.registInlineBtn:hover {
    background: #17a589;
}

.registInlineBtn:disabled {
    background: #d1fae5;
    cursor: not-allowed;
}

/* ── 피드백 메시지 ── */
.registMsg {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
    color: #6b7280;
}

.registMsg.ok   { color: #059669; }
.registMsg.err  { color: #dc2626; }

/* ── 제출 버튼 ── */
.registSubmitBtn {
    width: 100%;
    height: 52px;
    background: #20c997;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    margin-bottom: 20px;
}

.registSubmitBtn:hover {
    background: #17a589;
}

/* ── 약관 동의 섹션 ── */
.termsSection {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

.termsAllRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.termsAllRow label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

.termsRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.termsRow:last-child {
    border-bottom: none;
}

.termsRow label {
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.termsRow label .req-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #20c997;
    border-radius: 4px;
    padding: 1px 6px;
}

.termsRow label .opt-badge {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 6px;
}

.termsDetailBtn {
    font-size: 12px;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    flex-shrink: 0;
    margin-left: 8px;
}

.termsDetailBtn:hover {
    color: #20c997;
}

/* 체크박스 커스텀 */
.termsCheck {
    width: 18px;
    height: 18px;
    accent-color: #20c997;
    cursor: pointer;
    flex-shrink: 0;
}

.termsRowRight {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── 로그인 링크 ── */
.registLoginLink {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.registLoginLink a {
    color: #20c997;
    font-weight: 600;
    text-decoration: none;
}

.registLoginLink a:hover {
    text-decoration: underline;
}

/* ── 카카오 배지 (kakaoregist 전용) ── */
.kakaoBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee500;
    color: #191919;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}
