/* ============================================================
   삼진팩플러스 - 회원 페이지 (PHP 신규 페이지) 스타일
   기존 Godomall 스킨과 별개로 작동하는 모던한 가입/로그인 화면
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

* { box-sizing: border-box; }

body.member-page {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background: #f5f7fa;
    color: #222;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.member-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.member-header {
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.member-header a {
    font-size: 18px;
    font-weight: 700;
    color: #1e6dd8;
}

.member-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.member-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    padding: 36px 32px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.member-card.wide {
    max-width: 720px;
}

.member-title {
    text-align: center;
    margin-bottom: 28px;
}
.member-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
}
.member-title p {
    font-size: 13px;
    color: #6a7280;
    margin: 0;
}

/* 회원가입 분기 카드 */
.join-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.join-type-card {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s ease;
    display: block;
}
.join-type-card:hover {
    border-color: #1e6dd8;
    background: #eef5fc;
    transform: translateY(-2px);
}
.join-type-card .icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: #1e6dd8;
}
.join-type-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 700;
}
.join-type-card p {
    font-size: 12px;
    color: #6a7280;
    line-height: 1.6;
    margin: 0;
}

/* 폼 */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}
.form-label .required { color: #e84545; margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: #1e6dd8;
    box-shadow: 0 0 0 3px rgba(30, 109, 216, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 580px) {
    .form-row, .form-row.three { grid-template-columns: 1fr; }
    .join-method-grid { grid-template-columns: 1fr; }
}

.form-help {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
    cursor: pointer;
    background: none;
}
.btn-primary {
    background: #1e6dd8; color: #fff;
}
.btn-primary:hover { background: #1957b3; }

.btn-default {
    background: #fff; color: #222; border-color: #d1d5db;
}
.btn-default:hover { background: #f5f7fa; }

.btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* OAuth 버튼 */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}
.btn-oauth {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
    border: none;
    text-decoration: none;
}
.btn-oauth:hover { opacity: 0.9; }
.btn-oauth.naver { background: #03c75a; color: #fff; }
.btn-oauth.kakao { background: #fee500; color: #3c1e1e; }
.btn-oauth.disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.btn-oauth .ico {
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}
.btn-oauth.kakao .ico { background: rgba(60,30,30,0.1); color: #3c1e1e; }

.divider {
    text-align: center;
    margin: 22px 0 18px;
    position: relative;
    color: #9ca3af;
    font-size: 12px;
}
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: #e5e7eb;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.member-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6a7280;
}
.member-footer-link a {
    color: #1e6dd8;
    font-weight: 600;
    margin-left: 6px;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}
.alert-error {
    background: #fde8e8;
    border: 1px solid #fdcaca;
    color: #b91c1c;
}
.alert-info {
    background: #eef5fc;
    border: 1px solid #bae0fd;
    color: #1957b3;
}
.alert-success {
    background: #e6f7ee;
    border: 1px solid #b6e8cc;
    color: #0d6e3a;
}

/* 영업사원 선택 - 검색형 콤보박스 */
.sp-picker {
    position: relative;
}
.sp-picker-input {
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.sp-picker-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: none;
    z-index: 100;
}
.sp-picker-dropdown.open { display: block; }
.sp-picker-search {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.sp-picker-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}
.sp-picker-list { padding: 4px 0; }
.sp-picker-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.sp-picker-item:hover { background: #f5f7fa; }
.sp-picker-item.selected { background: #eef5fc; color: #1e6dd8; font-weight: 600; }
.sp-picker-item .meta { color: #9ca3af; font-size: 11px; font-weight: 400; }
.sp-picker-section {
    padding: 8px 14px 4px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    background: #fafbfc;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 22px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    cursor: pointer;
    padding: 6px 0;
}
.checkbox-group input { margin-top: 3px; }

.terms-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    max-height: 110px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.6;
    color: #6a7280;
    margin-bottom: 8px;
}
