/* ========================================
   회원가입 페이지
   ======================================== */

.sg-section {
    background: #fff;
    padding: 64px 0 96px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    min-height: 50vh;
}
.sg-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 60px;
    background: #fff;
    border-radius: 30px 30px 0 0;
}
.sg-section .container { position: relative; z-index: 1; }

.sg-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Alerts */
.sg-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 18px;
}
.sg-alert-error { background: #fef2f2; color: #b91c1c; }

/* ===== 폼 필드 ===== */
.sg-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sg-field {
    position: relative;
    border: 1.5px solid #e8e5dd;
    border-radius: 10px;
    padding: 12px 18px 10px;
    transition: all 0.2s;
    background: #fff;
}
.sg-field:focus-within {
    border-color: var(--color-sub-accent);
    box-shadow: 0 0 0 3px rgba(184,148,104,0.1);
}

.sg-label {
    display: block;
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
    margin-bottom: 3px;
    cursor: text;
}
.sg-label em {
    color: #c8102e;
    font-style: normal;
    margin-left: 1px;
}

.sg-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sg-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 2px 0;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
}
.sg-input::placeholder { color: #bbb; }

.sg-check-link {
    flex-shrink: 0;
    color: #c8102e;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}
.sg-check-link:hover { color: #a50d24; }

.sg-helper {
    font-size: 0.78rem;
    margin-top: 6px;
    min-height: 16px;
}
.sg-helper-ok { color: #16a34a; }
.sg-helper-err { color: #ef4444; }

/* ===== 동의 ===== */
.sg-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #666;
    cursor: pointer;
    padding: 6px 4px;
    margin: 4px 0;
}
.sg-agree input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--color-sub-accent);
    cursor: pointer;
}
.sg-agree a {
    color: #333;
    text-decoration: underline;
    font-weight: 600;
}
.sg-agree a:hover { color: var(--color-sub-accent); }

/* ===== 버튼 ===== */
.sg-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-sub-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    letter-spacing: -0.3px;
}
.sg-submit-btn:hover:not(:disabled) {
    background: var(--color-sub-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184,148,104,0.3);
}
.sg-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== 로그인 링크 ===== */
.sg-login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
}
.sg-login-link span { color: #666; margin-right: 6px; }
.sg-login-link a {
    color: var(--color-sub-accent);
    font-weight: 700;
    text-decoration: none;
}
.sg-login-link a:hover { text-decoration: underline; }

/* ===== 반응형 ===== */
@media (max-width: 575px) {
    .sg-section { padding: 40px 0 60px; }
    .sg-form-wrap { padding: 10px 0; }
}
