#loginForm {
    padding-inline: 16px !important;
}

#loginForm.signup {
    padding-top: 20px !important;
}

/* Allow scrolling inside the signup form without changing element sizes */
section:has(#loginForm.signup) {
    overflow-y: auto;
}

section:has(#loginForm.signup)::-webkit-scrollbar {
    width: 4px;
}

.login {
    margin-bottom: 5px;
}

section:has(#loginForm.signup)::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

section:has(#loginForm.signup)::-webkit-scrollbar-track {
    background: transparent;
}

/* ── Accessible hidden label ── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Referral select – match existing inputs ── */
#referral {
    width: 100%;
    padding: 7px 10px;
    font-size: 1em;
    font-family: "Host Grotesk", sans-serif;
    color: #000;
    background: #fff;
    border: 0.5px solid #eee;
    border-radius: 7px;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* custom chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

#referral:focus {
    border: 0.5px solid #333;
}

/* placeholder-like first option */
#referral option[value=""] {
    color: #999;
}

/* ── Referral link input ── */
#referral_link_container {
    width: 100%;
}

#referral_link {
    width: 100%;
    padding: 7px 10px;
    font-size: 1em;
    font-family: "Host Grotesk", sans-serif;
    color: #000;
    background: #fff;
    border: 0.5px solid #eee;
    border-radius: 7px;
    box-sizing: border-box;
}

#referral_link:focus {
    border: 0.5px solid #333;
}

#referral_link::placeholder {
    color: #999;
    opacity: 1;
}