.li-accounts-shell {
    width: min(620px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.li-accounts-shell--compact {
    width: min(540px, calc(100% - 32px));
}

.li-accounts-shell > h1 {
    margin: 0 0 28px;
    text-align: center;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 500;
    line-height: 1.15;
}

.li-accounts-card {
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.li-accounts-card label:not(.li-accounts-check) {
    display: block;
    margin: 0 0 18px;
    color: #202020;
    font-weight: 500;
}

.li-accounts-card input[type="text"],
.li-accounts-card input[type="email"],
.li-accounts-card input[type="password"] {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
    font-size: 16px;
}

.li-accounts-card input:focus {
    border-color: #222;
    outline: 2px solid #222;
    outline-offset: 1px;
}

.li-accounts-card small {
    display: block;
    margin-top: 6px;
    color: #777;
    font-weight: 400;
}

.li-accounts-strength {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    margin-top: 10px;
    color: #777;
    font-size: 13px;
    font-weight: 500;
}

.li-accounts-strength--empty {
    display: none;
}

.li-accounts-strength__bar {
    position: relative;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e5e5;
}

.li-accounts-strength__bar::after {
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: inherit;
    background: #aaa;
    content: "";
    transition: width .18s ease, background-color .18s ease;
}

.li-accounts-strength--0 .li-accounts-strength__bar::after,
.li-accounts-strength--1 .li-accounts-strength__bar::after,
.li-accounts-strength--5 .li-accounts-strength__bar::after {
    width: 25%;
    background: #b32d2e;
}

.li-accounts-strength--2 .li-accounts-strength__bar::after {
    width: 55%;
    background: #d98e00;
}

.li-accounts-strength--3 .li-accounts-strength__bar::after,
.li-accounts-strength--4 .li-accounts-strength__bar::after {
    width: 100%;
    background: #16833d;
}

.li-accounts-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 0 20px;
    color: #555;
    font-weight: 500;
}

.li-accounts-check input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.li-accounts-check span {
    line-height: 1.5;
}

.li-accounts-card button,
.li-accounts-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #181818;
    border-radius: 999px;
    background: #181818;
    color: #fff !important;
    text-align: center;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

.li-accounts-card button:hover,
.li-accounts-button:hover {
    border-color: #000;
    background: #000;
}

.li-accounts-social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 16px 0 0;
    padding: 10px 18px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #fff;
    color: #202124 !important;
    text-align: center;
    font-weight: 500;
}

.li-accounts-social:hover {
    border-color: #b8b8b8;
    background: #f8f9fa;
    color: #202124 !important;
}

.li-accounts-provider-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.li-accounts-provider-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.li-accounts-provider-label {
    line-height: 1.2;
}

.li-accounts-social--connect {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Provider-neutral hooks are intentionally shared so Facebook can use the same button layout later. */
.li-accounts-social--facebook .li-accounts-provider-icon {
    color: #1877f2;
}


.li-accounts-links {
    margin: 18px 0 0;
    color: #666;
    text-align: center;
}

.li-accounts-notice {
    margin: 0 auto 18px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.li-accounts-notice--success {
    border-color: #cfe4d2;
    background: #f4faf5;
    color: #315f39;
}

.li-accounts-notice--error {
    border-color: #efd2cf;
    background: #fff7f6;
    color: #9f1f17;
}

.li-accounts-verify p {
    margin: 0 0 22px;
    color: #555;
    text-align: center;
}

.li-accounts-card .li-accounts-code {
    min-height: 64px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .35em;
}

.li-accounts-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    color: #666;
}

.li-accounts-resend button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d98e00;
    cursor: pointer;
}

.li-accounts-centred {
    text-align: center;
}

.li-accounts-danger {
    background: #a82424 !important;
}

.li-accounts-connections {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.li-accounts-connections h3 {
    margin: 0 0 18px;
}

.li-accounts-connections-list {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 650px;
}

.li-accounts-connections .li-accounts-social {
    margin: 0;
    min-height: 48px;
    text-decoration: none !important;
}

.li-accounts-connection-row {
    display: flex;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    box-sizing: border-box;
}

.li-accounts-connection-status {
    display: flex;
    align-items: center;
    min-width: 0;
    font-weight: 500;
    color: #202124;
}

.li-accounts-provider-icon--facebook {
    color: #1877f2;
}

.li-accounts-disconnect {
    flex: 0 0 auto;
    color: #d98e00 !important;
    font-size: 14px;
    text-decoration: none !important;
}

.li-accounts-disconnect:hover {
    color: #b67700 !important;
}

@media (max-width: 600px) {
    .li-accounts-shell,
    .li-accounts-shell--compact {
        width: min(100% - 28px, 620px);
        padding: 30px 0 52px;
    }

    .li-accounts-shell > h1 {
        margin-bottom: 24px;
        font-size: 36px;
    }

    .li-accounts-card {
        padding: 17px;
        border-radius: 12px;
    }

    .li-accounts-card label:not(.li-accounts-check) {
        margin-bottom: 15px;
    }

    .li-accounts-card input[type="text"],
    .li-accounts-card input[type="email"],
    .li-accounts-card input[type="password"] {
        min-height: 44px;
    }

    .li-accounts-resend {
        flex-wrap: wrap;
    }
}
