* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f5f8;
    color: #1f2933;
}

.signup-page {
    min-height: 100vh;
    padding: 32px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.signup-card {
    width: 100%;
    max-width: 920px;
    background: #ffffff;
    border: 1px solid #d9e0ea;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.signup-header {
    margin-bottom: 28px;
}

.signup-header h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.3;
}

.signup-header p {
    margin: 0;
    color: #5b6778;
    font-size: 15px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 20px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #fbfcfe;
}

.form-section h2 {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    font-size: 18px;
}

.form-section label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-section label.wide {
    grid-column: 1 / -1;
}

.form-section span {
    font-weight: 600;
    font-size: 14px;
}

.form-section em {
    color: #d92d20;
    font-style: normal;
}

.form-section input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
}

.form-section input[type="file"] {
    height: auto;
    padding: 10px 12px;
}

.form-section small {
    color: #6b7280;
}

.agreement-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #ffffff;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.check-row input {
    margin-top: 3px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    min-width: 140px;
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.btn.primary {
    background: #1f2937;
    color: #ffffff;
}

.btn.secondary {
    background: #ffffff;
    border-color: #cfd7e3;
    color: #1f2937;
}

.complete-card {
    max-width: 640px;
}

.complete-box {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #d9e0ea;
    background: #f8fafc;
    margin: 20px 0;
}

.complete-box .label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 6px;
}

.complete-box .request-no {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.notice-box {
    padding: 16px 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #7c2d12;
}

.notice-box p {
    margin: 4px 0;
}

@media (max-width: 720px) {
    .signup-card {
        padding: 22px;
    }

    .form-section {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}
/* --------------------------------------------------------------------------
   가입요청 연락처/약관/암호화 안내 보강 스타일
   - 기존 카드형 레이아웃을 유지하면서 오류 메시지와 약관 상세 영역만 보강한다.
   - 화면 전체 디자인 변경이 아니라 가입요청 폼 내부 구성요소 보강용이다.
-------------------------------------------------------------------------- */
.signup-error {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
}

.agreement-section h2 {
    margin: 0;
    font-size: 18px;
}

.agreement-help {
    margin: 0 0 4px;
    color: #5b6778;
    font-size: 14px;
    line-height: 1.6;
}

.agreement-item {
    padding: 14px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fbfcfe;
}

.agreement-item.required {
    border-color: #dbeafe;
    background: #f8fbff;
}

.agreement-item.optional {
    border-color: #e5e7eb;
    background: #ffffff;
}

.agreement-item details {
    margin-bottom: 10px;
}

.agreement-item summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
}

.agreement-body {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    line-height: 1.65;
}

.agreement-body p {
    margin: 0 0 8px;
}

.agreement-body p:last-child {
    margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   개인정보 보호 및 암호화 안내 박스
   - 무료서비스 기준의 실제 보호조치와 단계 적용 원칙을 과장 없이 표시한다.
   - 별도 화면 디자인 변경 없이 약관 섹션 내부 안내 요소로만 사용한다.
-------------------------------------------------------------------------- */
.security-notice {
    padding: 14px 16px;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    background: #f8fbff;
    color: #24324a;
}

.security-notice h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
}

.security-notice ul {
    margin: 0;
    padding-left: 18px;
}

.security-notice li {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.55;
}
