/* Registration panel follows the member center's quiet form hierarchy. */
#auth-apple-modal.is-register .ds-modal-content-lg {
    max-width: 590px;
    max-height: min(94dvh, 920px);
    border: 1px solid #dce3ef;
    border-radius: 22px;
    background: #f7f9fd;
    box-shadow: 0 32px 90px rgb(22 38 75 / 24%);
}
#auth-apple-modal.is-register .ds-modal-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    padding: 18px;
    border: 0;
    pointer-events: none;
}
#auth-apple-modal.is-register .ds-modal-header-content { justify-content: flex-end; }
#auth-apple-modal.is-register .ds-modal-header .ds-modal-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
#auth-apple-modal.is-register .ds-modal-close {
    pointer-events: auto;
    background: #e9eef7;
    color: #334155;
}
#auth-apple-modal.is-register .ds-modal-body { padding: 42px 50px 34px; }
#auth-apple-modal.is-register .ds-auth-tabs { display: none; }
#auth-apple-modal.is-register #register-form { gap: 17px; }
#auth-apple-modal.is-register .ds-register-hero { text-align: center; margin-bottom: 10px; }
#auth-apple-modal.is-register .ds-register-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 19px;
    border-radius: 17px;
    color: #1565e8;
    background: #e5eeff;
}
#auth-apple-modal.is-register .ds-register-icon svg { width: 28px; height: 28px; }
#auth-apple-modal.is-register .ds-register-title {
    margin: 0;
    color: #1c2433;
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.2;
}
#auth-apple-modal.is-register .ds-register-subtitle {
    margin: 11px 0 0;
    color: #7a8497;
    font-size: 15px;
    line-height: 1.5;
}
#auth-apple-modal.is-register .ds-form-label {
    display: block;
    margin-bottom: 8px;
    color: #31415f;
    font-size: 14px;
    font-weight: 600;
}
#auth-apple-modal.is-register .ds-required-mark { color: #df434d; }
#auth-apple-modal.is-register .ds-auth-input {
    width: 100%;
    min-height: 51px;
    box-sizing: border-box;
    border: 1px solid #c8d2e2;
    border-radius: 11px;
    background: #f9fbff;
    color: #182238;
    font-size: 15px;
    box-shadow: none;
}
#auth-apple-modal.is-register .ds-auth-input:focus {
    border-color: #276fe9;
    box-shadow: 0 0 0 3px rgb(39 111 233 / 13%);
}
#auth-apple-modal.is-register .ds-field-note {
    margin-top: 7px;
    color: #6f7f9a;
    font-size: 12px;
    line-height: 1.5;
}
#auth-apple-modal.is-register .ds-password-strength { margin-top: 8px; }
#auth-apple-modal.is-register .ds-register-details { min-width: 0; }
#auth-apple-modal.is-register .ds-register-details summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 17px;
    border-radius: 12px;
    background: #e9edf5;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
#auth-apple-modal.is-register .ds-register-details summary::-webkit-details-marker { display: none; }
#auth-apple-modal.is-register .ds-register-details summary:focus-visible,
#auth-apple-modal.is-register .ds-register-signin button:focus-visible { outline: 2px solid #216af0; outline-offset: 3px; }
#auth-apple-modal.is-register .ds-register-optional { margin-left: auto; color: #7b8494; font-size: 12px; font-weight: 500; }
#auth-apple-modal.is-register .ds-register-chevron { font-size: 20px; line-height: .8; transition: transform .2s ease; }
#auth-apple-modal.is-register .ds-register-details[open] .ds-register-chevron { transform: rotate(180deg); }
#auth-apple-modal.is-register .ds-register-details-body { display: grid; gap: 16px; padding: 16px 4px 2px; }
#auth-apple-modal.is-register .ds-register-details-body p { margin: 0; color: #6c7f9d; font-size: 13px; line-height: 1.6; }
#auth-apple-modal.is-register .ds-captcha-wrapper { padding: 4px 0; border: 0; background: transparent; }
#auth-apple-modal.is-register .ds-terms-wrapper { padding: 12px 14px; border: 1px solid #e1e7f0; border-radius: 11px; background: #f0f3f8; }
#auth-apple-modal.is-register .ds-terms-label { font-size: 12px; line-height: 1.5; }
#auth-apple-modal.is-register #register-submit-btn {
    margin-top: 0;
    min-height: 52px;
    border-radius: 11px;
    background: #2770e8 !important;
    color: white;
    font-size: 16px;
}
#auth-apple-modal.is-register #register-submit-btn:disabled { background: #8fb5ed !important; opacity: 1 !important; filter: none !important; }
#auth-apple-modal.is-register .ds-register-signin { margin: 2px 0 0; color: #718099; text-align: center; font-size: 13px; }
#auth-apple-modal.is-register .ds-register-signin button { border: 0; background: none; color: #1769e8; font: inherit; font-weight: 600; cursor: pointer; }
html[data-theme="dark"] #auth-apple-modal.is-register .ds-modal-content-lg { background: #141e2e; border-color: #33445e; }
html[data-theme="dark"] #auth-apple-modal.is-register .ds-register-title,
html[data-theme="dark"] #auth-apple-modal.is-register .ds-form-label { color: #eef4ff; }
html[data-theme="dark"] #auth-apple-modal.is-register .ds-register-subtitle,
html[data-theme="dark"] #auth-apple-modal.is-register .ds-field-note,
html[data-theme="dark"] #auth-apple-modal.is-register .ds-register-signin { color: #acbcd2; }
html[data-theme="dark"] #auth-apple-modal.is-register .ds-auth-input { color: #f4f8ff; background: #1b2940; border-color: #526782; }
html[data-theme="dark"] #auth-apple-modal.is-register .ds-register-details summary,
html[data-theme="dark"] #auth-apple-modal.is-register .ds-terms-wrapper { color: #e2eaf7; background: #22314a; border-color: #344862; }
html[data-theme="dark"] #auth-apple-modal.is-register .ds-register-details-body p { color: #b9c8dc; }
@media (max-width: 640px) {
    #auth-apple-modal.is-register .ds-modal-content-lg { max-height: calc(100dvh - 20px); border-radius: 17px; }
    #auth-apple-modal.is-register .ds-modal-body { padding: 38px 22px 26px; }
    #auth-apple-modal.is-register .ds-register-hero { margin-bottom: 3px; }
    #auth-apple-modal.is-register .ds-form-row { grid-template-columns: 1fr; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    #auth-apple-modal.is-register .ds-register-chevron { transition: none; }
}
