.auth-section-register {
    align-items: flex-start;
    min-height: auto;
    padding: 1.5rem 1rem 3rem;
}

.auth-card-register {
    max-width: 56rem;
}

.register-logo {
    width: 5.5rem;
    height: auto;
    display: block;
    margin: 0 auto 0.75rem;
}

.register-form .form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.hidden { display: none !important; }

#member-family-section:has(#add_family:checked) #family-body,
#member-guarantor-section:has(#add_guarantor:checked) #guarantor-body {
    display: block !important;
}

#member-family-section:has(#add_family:checked) .family-card[data-family-row="1"] {
    display: block !important;
}

#member-guarantor-section:has(#add_guarantor:checked) .family-card[data-guarantor-row="1"] {
    display: block !important;
}

.family-section {
    margin: 1.5rem 0 1.25rem;
}

.family-section-head { margin-bottom: 0.85rem; }

.family-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    margin: 0;
    font-weight: 700;
    color: var(--color-text);
}

.family-toggle input {
    width: 1.05rem;
    height: 1.05rem;
}

.family-body { margin-top: 0.75rem; }

.family-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.family-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem 0.35rem;
    margin-bottom: 1rem;
}

.family-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--color-border);
}

.family-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    background: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
}

.family-relationship-other { margin-top: 0.5rem; }
.family-row-hint { margin: 0.15rem 0 0; }
.family-card textarea.form-control { min-height: 84px; }

.signature-pad-wrap {
    position: relative;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
}

.signature-pad {
    display: block;
    width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
}

.signature-saved {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    background: #fff;
}

.signature-clear { margin-top: 0.5rem; }

.member-docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 560px;
}

.member-doc-preview {
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-doc-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}
