.referral-entry {
    min-height: 100vh;
    margin: 0;
    background: #f3f6fa;
    color: #172033;
    font-family: var(--font-family);
    letter-spacing: 0;
}

.referral-entry,
.referral-entry * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.referral-entry-shell {
    width: min(100%, 500px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.referral-entry-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #172033;
}

.referral-entry-brand .brand-lockup {
    font-size: 18px;
}

.referral-entry-panel {
    padding: 30px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.referral-entry-eyebrow {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.referral-entry-panel h1 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.referral-entry-benefits {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.referral-entry-benefits li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
}

.referral-entry-benefits svg {
    width: 19px;
    height: 19px;
    color: #0f766e;
}

.referral-entry-actions {
    display: grid;
    gap: 18px;
}

.referral-entry-actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
}

.referral-entry-actions .btn svg {
    width: 19px;
    height: 19px;
}

.referral-entry-primary {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: none;
}

.referral-entry-primary:hover,
.referral-entry-primary:focus-visible {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: none;
    transform: none;
}

.referral-entry-existing-account > p,
.referral-entry-new-account > p:first-child {
    margin: 0 0 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.referral-entry-actions .btn-secondary {
    border: 1px solid #aebbcf;
    background: #ffffff;
    color: #243047;
    box-shadow: none;
}

.referral-entry-actions .btn-secondary:hover,
.referral-entry-actions .btn-secondary:focus-visible {
    border-color: #2563eb;
    background: #f8fafc;
    color: #1d4ed8;
    outline: 3px solid rgba(37, 99, 235, 0.12);
}

.referral-entry-new-account {
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.referral-entry-bonus {
    margin: 9px 0 0;
    color: #315c57;
    font-size: 12px;
    line-height: 1.45;
}

.referral-entry-support {
    margin: 22px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.referral-entry-support a {
    color: #2563eb;
    font-weight: 600;
    text-underline-offset: 3px;
}

@media (max-width: 520px) {
    .referral-entry-shell {
        min-height: 100svh;
        padding: 18px 14px;
        justify-content: flex-start;
    }

    .referral-entry-brand {
        margin-bottom: 14px;
    }

    .referral-entry-panel {
        padding: 22px 18px;
    }

    .referral-entry-panel h1 {
        font-size: 24px;
    }
}

@media (max-width: 340px) {
    .referral-entry-shell {
        padding-inline: 10px;
    }

    .referral-entry-panel {
        padding-inline: 15px;
    }

    .referral-entry-panel h1 {
        font-size: 22px;
    }
}
