@keyframes registration-entry-page-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.registration-entry-page .registration-form {
    gap: 20px;
}

.registration-entry-page .page-title {
    margin-bottom: 28px;
}

.registration-entry-page .registration-entry-page__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
}

.registration-entry-page .registration-entry-page__loading[hidden] {
    display: none !important;
}

.registration-entry-page .registration-form[hidden] {
    display: none !important;
}

/* referral-code-panel 套用了 display: flex，必須明確覆寫，確保 [hidden] 能正確隱藏面板。 */
.registration-entry-page .referral-code-panel[hidden] {
    display: none !important;
}

.registration-entry-page .registration-entry-page__loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: registration-entry-page-spin 1s linear infinite;
}

.registration-entry-page .registration-entry-page__loading-text {
    margin-top: 12px;
}

.registration-entry-page .registration-entry-page__input-group > input[type="text"],
.registration-entry-page .registration-entry-page__input-group > input[type="tel"] {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.registration-entry-page .registration-entry-page__input-group > input[type="text"]::placeholder,
.registration-entry-page .registration-entry-page__input-group > input[type="tel"]::placeholder {
    color: #9aa4af;
    font-weight: 400;
}

.registration-entry-page .registration-entry-page__input-group > input[type="text"]:focus,
.registration-entry-page .registration-entry-page__input-group > input[type="tel"]:focus {
    border-color: var(--action-blue);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.08);
}

.registration-entry-page .referral-code-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 185, 0, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0, 185, 0, 0.08) 0%, rgba(0, 185, 0, 0.03) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.registration-entry-page .referral-code-panel__eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #00b900;
    letter-spacing: 0.08em;
}

.registration-entry-page .referral-code-panel__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.registration-entry-page .referral-code-panel__label {
    font-size: 14px;
    font-weight: 600;
    color: #5f6368;
}

.registration-entry-page .referral-code-panel__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: #fff;
    color: #121212;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(0, 185, 0, 0.15);
}

.registration-entry-page .referral-code-panel__value--name {
    min-width: 0;
    max-width: 100%;
    padding-inline: 0;
    justify-content: flex-end;
    text-align: right;
    line-height: 1.4;
    font-size: 18px;
    white-space: normal;
    background-color: transparent;
    box-shadow: none;
}

.registration-entry-page .referral-code-panel__hint {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.registration-entry-page .checkbox-group {
    margin-top: 2px;
}

.registration-entry-page .helper-text {
    margin-top: 8px;
}
