﻿/* Ensemble - login page (V2). Bright, light-only design. */

:root {
    --accent: #2BB5E8;
    --accent-deep: #0A8FC4;
    --accent-ink: #04141B;
    --sun: #FFC857;
    --coral: #FF8A65;
    --mint: #5ED3B0;
    --text: #1A1F25;
    --text-2: #3A434D;
    --muted: #5F6975;
    --border: #DDE3E9;
    --field: #F6F8FA;
    --link: #0A7FAE;
    --danger: #B42318;
    --danger-bg: #FDECEA;
    --amber: #8A5A00;
    --amber-bg: #FDF1D6;
    --green: #1E7A44;
    --green-bg: #DDF5E6;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body#loginBody {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 24px;
    font-family: 'Manrope', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text);
    background-color: #FFF9F0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 200, 87, .45) 0, rgba(255, 200, 87, 0) 38%),
        radial-gradient(circle at 88% 12%, rgba(43, 181, 232, .35) 0, rgba(43, 181, 232, 0) 40%),
        radial-gradient(circle at 80% 92%, rgba(94, 211, 176, .35) 0, rgba(94, 211, 176, 0) 42%),
        radial-gradient(circle at 10% 95%, rgba(255, 138, 101, .25) 0, rgba(255, 138, 101, 0) 38%);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ---------- Background decoration ---------- */

.v2Bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.v2Staff {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    width: 100%;
    height: 420px;
    transform: translateY(-50%);
    stroke: rgba(43, 181, 232, .22);
}

.v2Note {
    position: absolute;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(26, 31, 37, .12);
    animation: v2Float 7s ease-in-out infinite;
}

.v2Note1 { left: 7%;  top: 16%; background: var(--sun);   transform: rotate(-8deg); }
.v2Note2 { right: 8%; top: 22%; background: var(--coral); animation-delay: -2s; transform: rotate(6deg); }
.v2Note3 { left: 12%; bottom: 14%; background: var(--mint); animation-delay: -4s; width: 44px; height: 44px; font-size: 18px; border-radius: 14px; }
.v2Note4 { right: 13%; bottom: 10%; background: var(--accent); animation-delay: -1s; width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }

@keyframes v2Float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
    .v2Note { animation: none; }
}

/* ---------- Card ---------- */

.v2Card {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(26, 31, 37, .14), 0 2px 6px rgba(26, 31, 37, .06);
    overflow: hidden;
}

/* Welcome panel */
.v2Welcome {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px 40px 44px;
    color: #fff;
    background: linear-gradient(150deg, #3CC6F2 0%, #1AA3DA 50%, #0B86C0 100%);
    overflow: hidden;
}

.v2Welcome::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, .14);
}

.v2WelcomeLogo {
    align-self: flex-start;
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(4, 20, 27, .15);
}

.v2WelcomeLogo img {
    height: 36px;
    display: block;
}

/* little sunny accent in the corner of the welcome panel */
.v2Welcome::before {
    content: "";
    position: absolute;
    right: 34px;
    top: 34px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 10px rgba(255, 200, 87, .25);
}

.v2WelcomeText h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.v2WelcomeText p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
    max-width: 30ch;
}

.v2Features {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.v2Features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.v2Features li span {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .2);
    font-size: 15px;
}

/* Form panel */
.v2Form {
    padding: 44px 48px 40px;
}

.v2Form header {
    margin-bottom: 22px;
}

.v2FormLogo {
    display: none;
}

.v2FormLogo img {
    height: 44px;
    display: block;
}

.v2Form h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.v2Sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.formContent {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.formRow label {
    display: block;
    margin: 0 0 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-2);
}

.v2LabelRow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.forgottenPassword a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
}

.forgottenPassword a:hover {
    text-decoration: underline;
}

/* Inputs with an icon */
.v2Input {
    position: relative;
    display: flex;
    align-items: center;
}

.v2Input > i {
    position: absolute;
    left: 16px;
    color: #9AA4B1;
    font-size: 15px;
    pointer-events: none;
    transition: color .15s;
}

.v2Input input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.v2Input input::placeholder {
    color: #9AA4B1;
}

.v2Input input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43, 181, 232, .18);
}

.v2Input:focus-within > i {
    color: var(--accent-deep);
}

.v2Input input#txtPassword {
    padding-right: 52px;
}

.v2PwToggle {
    position: absolute;
    right: 6px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7A8590;
    font-size: 15px;
    cursor: pointer;
}

.v2PwToggle:hover {
    background: #EEF2F5;
    color: var(--text);
}

/* Buttons */
.formActions button {
    width: 100%;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .1s, box-shadow .15s, background-color .15s, filter .15s;
}

#btnLogin {
    margin-top: 4px;
    border: 0;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    box-shadow: 0 10px 22px rgba(26, 163, 218, .32);
}

#btnLogin:hover {
    filter: brightness(1.05);
}

#btnLogin:active {
    transform: translateY(1px);
}

#btnLogin.button-disabled {
    background: #E8EDF1;
    color: #8A949F;
    box-shadow: none;
    cursor: default;
    filter: none;
}

#btnSignUp {
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
}

#btnSignUp i {
    color: var(--sun);
}

#btnSignUp:hover {
    border-color: var(--accent);
    background: #F3FBFE;
}

#btnSignUp:disabled, #btnLogin:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.v2Divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 -2px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

.v2Divider::before, .v2Divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Messages */
.v2Alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.v2AlertError {
    background: var(--danger-bg);
    color: var(--danger);
}

.v2AlertWarn {
    background: var(--amber-bg);
    color: var(--amber);
}

.v2AlertOk {
    background: var(--green-bg);
    color: var(--green);
}

#btnResendLink {
    height: 34px;
    padding: 0 12px;
    border: 1px solid currentColor;
    border-radius: 9px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.v2Foot {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    font-size: 13px;
    color: var(--muted);
}

/* Keep Lucky Orange's tab from sitting on the form on small screens */
#LoAvailableBtn, #LoAwayFormBtn {
    bottom: 0 !important;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 820px) {
    .v2Card {
        grid-template-columns: 1fr;
        width: min(480px, 100%);
    }

    /* Welcome panel becomes a bright header strip */
    .v2Welcome {
        gap: 14px;
        padding: 24px 26px 26px;
    }

    .v2Welcome::before {
        right: 22px;
        top: 22px;
        width: 34px;
        height: 34px;
        box-shadow: 0 0 0 8px rgba(255, 200, 87, .25);
    }

    .v2Welcome::after {
        width: 160px;
        height: 160px;
        right: -60px;
        bottom: -80px;
        border-width: 20px;
    }

    .v2WelcomeText h1 {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .v2WelcomeText p {
        font-size: 15px;
    }

    .v2Features {
        display: none;
    }

    .v2Form header h2 + .v2Sub {
        display: none;
    }

    .v2Form {
        padding: 32px 26px 28px;
    }

    .v2Note1, .v2Note2 { width: 44px; height: 44px; font-size: 18px; border-radius: 14px; }
}

@media (max-width: 480px) {
    body#loginBody {
        justify-content: flex-start;
        padding: 20px 12px 80px;
    }

    .v2Card {
        border-radius: 22px;
    }

    .v2Form {
        padding: 28px 20px 24px;
    }

    .v2Form h2 {
        font-size: 24px;
    }

    .v2Note1 { left: 14px; top: auto; bottom: 70px; }
    .v2Note2 { right: 14px; top: auto; bottom: 110px; }
    .v2Note3, .v2Note4 { display: none; }
}

/* ---------- Chosen background: Ensemble blue (15 Oct 2026) ---------- */

body#loginBody {
    background-color: #0B86C0;
    background-image: linear-gradient(150deg, #3CC6F2 0%, #1AA3DA 45%, #0B86C0 100%);
    background-attachment: fixed;
}

.v2Staff {
    stroke: rgba(255, 255, 255, .22);
}

.v2Note,
.v2Welcome::before {
    display: none !important;
}

/* The welcome panel turns pale so the card stands out against the blue page */
.v2Welcome {
    color: var(--text);
    background: linear-gradient(150deg, #EEF9FE 0%, #D7EFFA 100%);
}

.v2Welcome::after {
    border-color: rgba(43, 181, 232, .14);
}

.v2WelcomeText h1 {
    color: var(--text);
}

.v2WelcomeText p {
    color: var(--text-2);
}

.v2WelcomeLogo {
    box-shadow: 0 6px 16px rgba(10, 143, 196, .14);
}

.v2Features li span {
    background: #fff;
    color: var(--accent-deep);
    box-shadow: 0 2px 6px rgba(10, 143, 196, .12);
}

.v2Card {
    box-shadow: 0 30px 70px rgba(4, 40, 60, .35), 0 2px 6px rgba(4, 40, 60, .12);
}

.v2Foot {
    color: rgba(255, 255, 255, .85);
}

/* ---------- Forgotten password page (shares this stylesheet) ---------- */

#btnReset, #btnBackToLogin {
    margin-top: 4px;
    border: 0;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    box-shadow: 0 10px 22px rgba(26, 163, 218, .32);
}

#btnReset:hover, #btnBackToLogin:hover {
    filter: brightness(1.05);
}

#btnReset.button-disabled {
    background: #E8EDF1;
    color: #8A949F;
    box-shadow: none;
    cursor: default;
    filter: none;
}

.v2Steps {
    counter-reset: none;
}

.v2Steps li span {
    font-weight: 800;
    font-size: 15px;
}

.v2Back {
    text-align: center;
}

.v2Back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--link);
    text-decoration: none;
}

.v2Back a:hover {
    text-decoration: underline;
}

.v2Sent {
    text-align: center;
    padding: 6px 0 0;
}

.v2SentIcon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 22px rgba(26, 163, 218, .3);
}

.v2Sent h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
}

.v2Sent p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
}

.v2Sent strong {
    color: var(--text);
    word-break: break-all;
}

.v2Sent .v2Hint {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 20px;
}

.v2Sent .v2Hint a {
    color: var(--link);
    font-weight: 600;
}

/* ---------- Password reset page (shares this stylesheet) ---------- */

#btnNewLink {
    margin-top: 4px;
    border: 0;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    box-shadow: 0 10px 22px rgba(26, 163, 218, .32);
}

#btnNewLink:hover {
    filter: brightness(1.05);
}

.v2SentIconWarn {
    background: linear-gradient(135deg, #FFC857, #F4A62A);
    box-shadow: 0 10px 22px rgba(244, 166, 42, .3);
}

.v2SentIconOk {
    background: linear-gradient(135deg, #5ED3B0, #2FB487);
    box-shadow: 0 10px 22px rgba(47, 180, 135, .3);
}

.v2Spin i {
    animation: v2SpinIcon 1s linear infinite;
}

@keyframes v2SpinIcon {
    to { transform: rotate(360deg); }
}

#v2LinkProblem .v2Alert {
    justify-content: center;
    text-align: center;
    margin-bottom: 18px;
}

#v2LinkProblem .v2Alert a {
    color: inherit;
    font-weight: 800;
}

#v2LinkProblem .v2Back {
    margin-top: 16px;
}

#resetForm header {
    margin-bottom: 22px;
}

.v2Checks {
    list-style: none;
    margin: -4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
}

.v2Checks li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.v2Checks li i {
    font-size: 12px;
    color: #C5CDD5;
}

.v2Checks li.v2Ok {
    color: var(--green);
}

.v2Checks li.v2Ok i {
    color: var(--green);
}

.v2Checks li.v2No {
    color: var(--danger);
}

.v2Checks li.v2No i {
    color: var(--danger);
}

/* ---------- Sign-up page (shares this stylesheet) ---------- */

#btnRegister {
    margin-top: 4px;
    border: 0;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    box-shadow: 0 10px 22px rgba(26, 163, 218, .32);
}

#btnRegister:hover {
    filter: brightness(1.05);
}

#btnRegister.button-disabled {
    background: #E8EDF1;
    color: #8A949F;
    box-shadow: none;
    cursor: default;
    filter: none;
}

#btnRegister #loginSpinner:not(.hidden) + #loginText + .v2BtnArrow {
    display: none;
}

.v2BtnArrow {
    font-size: 14px;
}

.v2Sub a {
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
}

.v2Sub a:hover {
    text-decoration: underline;
}

.v2Pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.v2Input.v2NoIcon input {
    padding-left: 16px;
}

/* Progress steps on the left: the current one stands out */
.v2Progress li {
    opacity: .6;
}

.v2Progress li.v2StepNow {
    opacity: 1;
}

.v2Progress li.v2StepNow span {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 480px) {
    .v2Pair {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* On tablets and phones the sign-up page keeps its 3 steps, as a compact row */
@media (max-width: 820px) {
    .v2SignUp .v2Progress {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-top: 4px;
    }

    .v2SignUp .v2Progress li {
        font-size: 13px;
        gap: 8px;
    }

    .v2SignUp .v2Progress li span {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 12.5px;
    }
}

/* Completed step on the left */
.v2Progress li.v2StepDone {
    opacity: 1;
}

.v2Progress li.v2StepDone span {
    background: var(--green-bg);
    color: var(--green);
}

/* ---------- Choose a plan page (sign-up-2V2) ---------- */

.v2PlansPage .v2Card {
    width: min(1180px, 100%);
    grid-template-columns: 320px 1fr;
}

.v2PlansPage .v2Welcome {
    padding: 36px 32px 40px;
}

.v2PlansPage .v2WelcomeText h1 {
    font-size: 30px;
}

.v2PlansPage .v2Form {
    padding: 40px 40px 34px;
}

.v2PlanHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Monthly / Yearly switch */
.v2Billing {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #EEF2F5;
}

.v2Billing.hidden {
    display: none;
}

.v2Billing button {
    height: 38px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.v2Billing button.v2On {
    background: #fff;
    color: var(--text);
    box-shadow: 0 2px 6px rgba(26, 31, 37, .12);
}

.v2Save {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

/* Plan cards */
.v2PlanGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.v2Plan {
    position: relative;
}

.v2Plan.hidden {
    display: none;
}

.v2Plan input,
.v2Pay input,
.v2Agree input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.v2Plan label {
    height: 100%;
    display: grid;
    grid-template-columns: 48px 1fr 24px;
    gap: 14px;
    align-items: start;
    padding: 18px 18px 18px 16px;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background-color .15s, transform .1s;
}

.v2Plan label:hover {
    border-color: #A9DDF2;
    box-shadow: 0 6px 18px rgba(10, 143, 196, .10);
}

.v2Plan input:focus-visible + label,
.v2Pay input:focus-visible + label {
    box-shadow: 0 0 0 4px rgba(43, 181, 232, .25);
}

.v2Plan.v2Chosen label {
    border-color: var(--accent);
    background: #F3FBFE;
    box-shadow: 0 0 0 3px rgba(43, 181, 232, .18), 0 8px 20px rgba(10, 143, 196, .12);
}

/* The free trial spans the full width */
.v2Plan-trial {
    grid-column: 1 / -1;
}

.v2Plan-trial label {
    background: linear-gradient(120deg, #FFF8E6 0%, #FFFFFF 70%);
}

.v2Plan-trial .v2PlanFeatures {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.v2PlanIcon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #E3F5FC;
    color: var(--accent-deep);
    font-size: 19px;
}

.v2Plan-trial .v2PlanIcon { background: #FFEFC7; color: #B07800; }
.v2Plan-pro .v2PlanIcon { background: #E4F7EF; color: #17845B; }
.v2Plan-corps .v2PlanIcon { background: #FFE9E2; color: #C2482A; }
.v2Plan-library .v2PlanIcon { background: #EEEAFD; color: #5B47C4; }
#multiPlanOptions .v2Plan-pro .v2PlanIcon, #multiPlanOptions [data-edition="pro"] .v2PlanIcon { background: #E4F7EF; color: #17845B; }
#multiPlanOptions [data-edition="corps"] .v2PlanIcon { background: #FFE9E2; color: #C2482A; }

.v2PlanBody {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2Plan .signUpText {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text);
}

.v2PlanTag {
    font-size: 13.5px;
    color: var(--muted);
}

.v2Plan .signUpPrice {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.v2Plan .signUpPrice b {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
}

.v2Plan .signUpPrice small {
    font-size: 13px;
    color: var(--muted);
}

.v2Saving {
    align-self: flex-start;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.v2Saving.hidden {
    display: none;
}

.v2PlanFeatures {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13.5px;
    color: var(--text-2);
}

.v2PlanFeatures li {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.v2PlanFeatures i {
    font-size: 11px;
    color: var(--green);
}

/* Round radio mark in the corner of each card */
.v2Radio {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid #C3CCD5;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.v2Chosen .v2Radio {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--accent);
}

/* Multi-person options */
.v2MultiHead {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-2);
}

.v2MultiHead i {
    color: var(--muted);
}

.v2PlanSmall label {
    grid-template-columns: 40px 1fr 24px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
}

.v2PlanSmall .v2PlanIcon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 16px;
}

.v2PlanSmall .signUpText {
    font-size: 15px;
}

.v2PlanSmall .signUpPrice {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.v2PlanSmall .v2Radio {
    margin: 0;
}

/* Payment method */
.v2FieldLabel {
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-2);
}

.v2PayGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.v2Pay {
    position: relative;
}

.v2Pay label {
    margin: 0 !important;
    height: 54px;
    display: grid !important;
    grid-template-columns: 24px 1fr 22px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: #fff;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    cursor: pointer;
}

.v2Pay label > i {
    font-size: 18px;
    color: var(--accent-deep);
    text-align: center;
}

.v2Pay label > i.fa-paypal {
    color: #1B4F9C;
}

.v2Pay.v2Chosen label {
    border-color: var(--accent);
    background: #F3FBFE;
}

/* Promo code */
.v2Promo summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--link);
    cursor: pointer;
    list-style: none;
}

.v2Promo summary::-webkit-details-marker {
    display: none;
}

.v2Promo summary:hover {
    text-decoration: underline;
}

.v2Promo[open] summary {
    margin-bottom: 10px;
}

.v2Promo .formRow {
    max-width: 320px;
}

.v2Optional {
    font-weight: 500;
    color: var(--text-2);
}

/* Terms */
#signUpTerms {
    max-height: 150px;
    overflow: auto;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--field);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-2);
}

#signUpTerms:focus-visible {
    outline: none;
    border-color: var(--accent);
}

#signUpTerms ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2Agree {
    margin: 12px 0 0 !important;
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    cursor: pointer;
}

.v2Tick {
    width: 24px;
    height: 24px;
    flex: none;
    display: grid;
    place-items: center;
    border: 2px solid #C3CCD5;
    border-radius: 7px;
    background: #fff;
    color: transparent;
    font-size: 12px;
    transition: background-color .15s, border-color .15s;
}

.v2Agree input:checked + .v2Tick {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.v2Agree input:focus-visible + .v2Tick {
    box-shadow: 0 0 0 4px rgba(43, 181, 232, .25);
}

/* Summary of the choice above the button */
.v2Summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #EEF9FE;
    font-size: 14.5px;
    color: var(--text-2);
}

.v2Summary.hidden {
    display: none;
}

.v2Summary i {
    color: var(--accent-deep);
}

.v2Summary b {
    color: var(--text);
}

.v2PlansPage .v2Hint {
    margin: -6px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

.v2PlansPage .v2Hint.hidden {
    display: none;
}

.v2PlansPage .formActions {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1080px) {
    .v2PlansPage .v2Card {
        grid-template-columns: 260px 1fr;
    }

    .v2PlansPage .v2Form {
        padding: 34px 28px 30px;
    }
}

@media (max-width: 900px) {
    .v2PlansPage .v2Card {
        grid-template-columns: 1fr;
        width: min(680px, 100%);
    }

    .v2PlansPage .v2Welcome {
        gap: 14px;
        padding: 24px 26px 26px;
    }

    .v2PlansPage .v2WelcomeText h1 {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .v2PlansPage .v2Progress {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-top: 4px;
    }

    .v2PlansPage .v2Progress li {
        font-size: 13px;
        gap: 8px;
    }

    .v2PlansPage .v2Progress li span {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 12.5px;
    }
}

@media (max-width: 820px) {
    /* keep the sub-heading on this page - it says you can cancel any time */
    .v2PlansPage .v2Form header h2 + .v2Sub {
        display: block;
    }
}

@media (max-width: 600px) {
    .v2PlanGrid,
    .v2PayGrid {
        grid-template-columns: 1fr;
    }

    .v2PlanHead {
        flex-direction: column;
        align-items: stretch;
    }

    .v2Billing {
        align-self: stretch;
    }

    .v2Billing button {
        flex: 1;
        justify-content: center;
    }

    .v2Plan label {
        grid-template-columns: 40px 1fr 22px;
        gap: 12px;
        padding: 14px;
    }

    .v2Plan .v2PlanIcon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 16px;
    }

    .v2Plan .signUpPrice b {
        font-size: 22px;
    }

    .v2Plan .signUpPrice {
        margin-top: 6px;
    }

    .v2PlanFeatures {
        margin-top: 8px;
        font-size: 13px;
    }

    .v2Promo .formRow {
        max-width: none;
    }
}

/* ---------- Choose a quantity page (sign-up-multiV2) ---------- */

.v2MultiPage .v2Card {
    width: min(980px, 100%);
    grid-template-columns: 320px 1fr;
}

.v2BackTop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--link);
    text-decoration: none;
}

.v2BackTop:hover {
    text-decoration: underline;
}

.v2Alert a {
    color: inherit;
    font-weight: 800;
}

.v2QtySource {
    display: none !important;
}

/* The subscription they picked */
.v2Base {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.v2Base.hidden, .v2Qty.hidden, .v2Total.hidden {
    display: none;
}

.v2PlanIcon.v2IconPro { background: #E4F7EF; color: #17845B; }
.v2PlanIcon.v2IconCorps { background: #FFE9E2; color: #C2482A; }

.v2BaseText {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.v2BaseLabel {
    font-size: 13px;
    color: var(--muted);
}

.v2BaseText b {
    font-size: 17px;
    font-weight: 800;
}

.v2BasePlus {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #EEF2F5;
    color: var(--muted);
    font-size: 12px;
}

/* Quantity */
.v2Qty {
    padding: 18px 18px 14px;
    border: 1.5px solid var(--accent);
    border-radius: 16px;
    background: #F3FBFE;
    box-shadow: 0 0 0 3px rgba(43, 181, 232, .14);
}

.v2Qty .v2FieldLabel {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

.v2Stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.v2Stepper button {
    width: 52px;
    height: 52px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--accent-deep);
    font-size: 17px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .1s;
}

.v2Stepper button:hover:not(:disabled) {
    border-color: var(--accent);
    background: #E3F5FC;
}

.v2Stepper button:active:not(:disabled) {
    transform: scale(.95);
}

.v2Stepper button:disabled {
    color: #B8C1CA;
    cursor: default;
}

.v2Stepper input {
    width: 110px;
    height: 64px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.v2Stepper input::-webkit-outer-spin-button,
.v2Stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.v2Stepper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(43, 181, 232, .18);
}

/* Slider */
#v2QtyRange {
    --fill: 0%;
    width: 100%;
    margin: 18px 0 4px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent) var(--fill), #DCE6EC var(--fill));
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
}

#v2QtyRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--accent);
    box-shadow: 0 2px 6px rgba(10, 143, 196, .35);
}

#v2QtyRange::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--accent);
    box-shadow: 0 2px 6px rgba(10, 143, 196, .35);
}

#v2QtyRange:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(43, 181, 232, .3);
}

.v2RangeEnds {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

/* Total */
.v2Total {
    text-align: center;
    padding: 4px 0 0;
}

.v2TotalPrice {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.v2TotalPrice b {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
}

.v2TotalPrice small {
    font-size: 14px;
    color: var(--muted);
}

.v2TotalWhat {
    margin-top: 4px;
    font-size: 14.5px;
    color: var(--text-2);
}

.v2TotalEach {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.v2TotalEach.hidden {
    display: none;
}

.v2MoreHint {
    margin: -4px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

.v2MoreHint a {
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
}

.v2MoreHint a:hover {
    text-decoration: underline;
}

@media (max-width: 1080px) {
    .v2MultiPage .v2Card {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 900px) {
    .v2MultiPage .v2Card {
        grid-template-columns: 1fr;
        width: min(560px, 100%);
    }
}

@media (max-width: 480px) {
    .v2Stepper input {
        width: 92px;
        height: 58px;
        font-size: 30px;
    }

    .v2Stepper button {
        width: 48px;
        height: 48px;
    }

    .v2TotalPrice b {
        font-size: 32px;
    }
}

/* The original long intros are kept in the page for the script but not shown */
.v2MultiPage #proIntro,
.v2MultiPage #corpsIntro {
    display: none !important;
}

/* No plan chosen: only the message and the way back */
.v2MultiPage.v2NoPlanChosen .v2MoreHint,
.v2MultiPage.v2NoPlanChosen .formActions {
    display: none;
}

/* ---------- Pay by card page (sign-up-stripeV2) ---------- */

.v2CardBrands {
    display: inline-flex;
    gap: 6px;
    font-size: 22px;
    color: #8A949F;
}

.v2CardBrands .fa-cc-visa { color: #1A1F71; }
.v2CardBrands .fa-cc-mastercard { color: #EB001B; }
.v2CardBrands .fa-cc-amex { color: #2E77BC; }

/* Stripe adds StripeElement--focus / --invalid / --complete to this box */
.v2CardField {
    min-height: 52px;
    padding: 16px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--field);
    transition: border-color .15s, box-shadow .15s, background-color .15s, opacity .15s;
}

.v2CardField.StripeElement--focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43, 181, 232, .18);
}

.v2CardField.StripeElement--invalid {
    border-color: #E5867D;
    background: #fff;
}

.v2CardField.StripeElement--complete:not(.StripeElement--focus) {
    border-color: #8FD3AB;
    background: #fff;
}

.v2CardField.v2Locked {
    opacity: .6;
    pointer-events: none;
}

.v2CardLoading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--muted);
}

.v2CardFailed {
    color: var(--danger);
}

/* the error box only shows when there's something in it */
#card-errors:empty {
    display: none;
}

#btnSubmit {
    margin-top: 4px;
    border: 0;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    box-shadow: 0 10px 22px rgba(26, 163, 218, .32);
}

#btnSubmit:hover {
    filter: brightness(1.05);
}

#btnSubmit:active {
    transform: translateY(1px);
}

#btnSubmit.button-disabled {
    background: #E8EDF1;
    color: #8A949F;
    box-shadow: none;
    cursor: default;
    filter: none;
    transform: none;
}

#btnSubmit #loginText {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#btnSubmit #loginText.hidden {
    display: none;
}

#btnSubmit #loginText i {
    font-size: 14px;
}

.v2Secure {
    margin: 2px 0 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: #F3F7F9;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
}

.v2Secure i {
    margin-top: 2px;
    color: var(--green);
}

.v2Secure b {
    color: var(--text-2);
}

/* ---------- PayPal hand-off, payment complete / cancelled, trial set up ---------- */

.v2StatusPage .v2Form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.v2Hidden {
    display: none !important;
}

.v2SentIconPayPal {
    background: linear-gradient(135deg, #2A7BD6, #1B4F9C);
    box-shadow: 0 10px 22px rgba(27, 79, 156, .3);
    font-size: 28px;
}

.v2Sent .v2Alert {
    margin: 4px 0 16px;
    text-align: left;
}

/* three bouncing dots while the browser heads off to PayPal */
.v2Dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 22px;
}

.v2Dots.hidden {
    display: none;
}

.v2Dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: v2Dot 1.1s ease-in-out infinite;
}

.v2Dots span:nth-child(2) { animation-delay: .15s; }
.v2Dots span:nth-child(3) { animation-delay: .3s; }

@keyframes v2Dot {
    0%, 80%, 100% { transform: translateY(0); opacity: .45; }
    40% { transform: translateY(-8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .v2Dots span { animation: none; opacity: .7; }
}

.v2BtnPrimary {
    border: 0;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    box-shadow: 0 10px 22px rgba(26, 163, 218, .32);
}

.v2BtnPrimary:hover {
    filter: brightness(1.05);
}

.v2BtnPrimary:active {
    transform: translateY(1px);
}

.v2BtnSecondary {
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
}

.v2BtnSecondary:hover {
    border-color: #A9DDF2;
    background: #F3FBFE;
}

.v2ActionSecond {
    margin-top: 12px;
}

.v2Sent .v2HintBelow {
    margin: 16px 0 0;
}

.v2StatusPage .formActions.hidden {
    display: none;
}

/* ---------- Login pop-up inside the score editor (loginPopupV2) ---------- */
/* The editor shows this page in a fixed 372 x 400 frame, so it is kept compact */

body.v2PopupBody {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    overflow: hidden;
}

.v2Popup {
    width: 100%;
    max-width: 372px;
    padding: 22px 22px 18px;
}

.v2PopupHead {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.v2PopupIcon {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 6px 14px rgba(26, 163, 218, .3);
}

.v2PopupHead h2 {
    margin: 1px 0 2px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.v2PopupHead p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--muted);
}

.v2Popup .formContent {
    gap: 10px;
}

.v2Popup .v2Input input {
    height: 46px;
    border-radius: 12px;
    font-size: 15px;
}

.v2Popup .v2Alert {
    padding: 9px 12px;
    font-size: 13px;
}

.v2Popup #btnResendLink {
    height: 30px;
}

.v2Popup .v2Alert a {
    color: inherit;
    font-weight: 800;
}

.v2PopupActions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 6px;
}

.v2PopupActions button {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.v2PopupActions #btnLogin {
    border: 0;
    background: linear-gradient(135deg, #3CC6F2, #1AA3DA);
    color: #fff;
    box-shadow: 0 8px 18px rgba(26, 163, 218, .3);
}

.v2PopupActions #btnLogin.button-disabled {
    background: #E8EDF1;
    color: #8A949F;
    box-shadow: none;
    cursor: default;
}

/* the extra pages that use the form layout */
.v2ExtraPage .v2Form header {
    margin-bottom: 22px;
}
.v2PopupActions #btnLogin { margin: 0; }

/* Login: password label and "Forgotten your password?" share a line, but the link comes
   after the password box in the page so Tab goes from email straight to password */
.v2PwRow {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 12px;
}

.v2PwRow > label { grid-column: 1; grid-row: 1; }
.v2PwRow > .forgottenPassword { grid-column: 2; grid-row: 1; }
.v2PwRow > .v2Input { grid-column: 1 / -1; grid-row: 2; }

/* Busy spinner in the buttons: a ring in the button's own text colour (replaces the old GIFs) */
.v2Spinner {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    opacity: .9;
    -webkit-animation: v2Spin .7s linear infinite;
    animation: v2Spin .7s linear infinite;
}

.v2Spinner.hidden {
    display: none;
}

@-webkit-keyframes v2Spin {
    to { -webkit-transform: rotate(360deg); }
}

@keyframes v2Spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .v2Spinner {
        -webkit-animation-duration: 1.6s;
        animation-duration: 1.6s;
    }
}

/* Payment method: its own highlighted panel just above the Continue button */
.v2PayBox {
    margin: 18px 0 4px;
    padding: 16px 18px 18px;
    border: 2px solid var(--accent);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(43, 181, 232, .12), rgba(43, 181, 232, .04));
    box-shadow: 0 6px 18px rgba(10, 143, 196, .12);
}

.v2PayBox.v2PayDone {
    border-color: var(--border);
    background: var(--field);
    box-shadow: none;
}

.v2PayHead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.v2PayHead i {
    color: var(--accent-deep);
}

.v2PayBox .v2PayGrid .v2Pay label {
    background: #FFFFFF;
}


/* ---------- Email login code (login.html and loginPopup.html) ---------- */

/* Groups fields so they can be hidden together, without changing the form's spacing */
.v2Group {
    display: contents;
}

.v2CodeHelp {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}

.v2Input input.v2CodeInput {
    letter-spacing: 6px;
    font-weight: 700;
}

.v2Input input.v2CodeInput::placeholder {
    letter-spacing: normal;
    font-weight: 400;
}

.v2CodeLinks {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.v2CodeLinks a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
}

.v2CodeLinks a:hover {
    text-decoration: underline;
}

.v2CodeLinks a.v2LinkWait,
.v2CodeLinks a.v2LinkWait:hover {
    color: var(--muted);
    cursor: default;
    text-decoration: none;
}

.v2Popup .v2CodeHelp {
    margin: 0;
    font-size: 13px;
}

.v2Popup .v2CodeLinks {
    margin-top: 0;
}

.v2Popup .v2CodeLinks a {
    font-size: 13px;
}
