/* Full-screen login / register. No site header, no left-border callouts. */

html.pilot-auth-html,
html.pilot-auth-html body.pilot-auth-screen,
body.pilot-auth-screen {
    --auth-dark: #242424;
    --auth-paper: #f4f1ec;
    --auth-orange: #f26522;
    --auth-text: #1a1a1a;
    --auth-muted: #8a8a8a;
    --auth-line: #d8d4ce;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--auth-dark);
    overflow: hidden;
}

body.pilot-auth-screen #header,
body.pilot-auth-screen header#header,
body.pilot-auth-screen header.ct-header,
body.pilot-auth-screen [data-header],
body.pilot-auth-screen #footer,
body.pilot-auth-screen footer.ct-footer,
body.pilot-auth-screen .ct-footer,
body.pilot-auth-screen .custom-global-footer,
body.pilot-auth-screen .ct-drawer,
body.pilot-auth-screen #account-modal,
body.pilot-auth-screen .ct-panel#account-modal,
body.pilot-auth-screen .hero-section,
body.pilot-auth-screen .entry-header,
body.pilot-auth-screen .ct-title,
body.pilot-auth-screen .page-title,
body.pilot-auth-screen .ct-breadcrumbs {
    display: none !important;
}

body.pilot-auth-screen #main-container,
body.pilot-auth-screen main#main,
body.pilot-auth-screen #main,
body.pilot-auth-screen #content,
body.pilot-auth-screen .site-main,
body.pilot-auth-screen article,
body.pilot-auth-screen .entry-content,
body.pilot-auth-screen .ct-container,
body.pilot-auth-screen .ct-container-full,
body.pilot-auth-screen [class*="ct-container"],
body.pilot-auth-screen .woocommerce,
body.pilot-auth-screen .woocommerce-account .woocommerce {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
}

body.pilot-auth-screen .woocommerce-account:not(.logged-in) .woocommerce {
    max-width: none !important;
    padding: 0 !important;
}

.pilot-auth {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    margin: 0;
    z-index: 100000;
    display: grid;
    grid-template-columns: minmax(300px, 40%) 1fr;
    background: var(--auth-paper);
    box-sizing: border-box;
}

.pilot-auth__brand {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 48px 40px;
    background: var(--auth-dark);
    color: #fff;
}

.pilot-auth__watermark {
    position: absolute;
    right: -22%;
    bottom: -18%;
    width: 130%;
    pointer-events: none;
    z-index: 0;
}

.pilot-auth__watermark img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.16;
    filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
    transform: rotate(-8deg);
}

.pilot-auth__brand > *:not(.pilot-auth__watermark) {
    position: relative;
    z-index: 1;
}

.pilot-auth__hero {
    margin: 0 0 auto;
}

.pilot-auth__name {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0.02em;
}

.pilot-auth__name-accent {
    color: var(--auth-orange);
}

.pilot-auth__rule {
    display: block;
    width: 56px;
    height: 4px;
    margin: 22px 0 18px;
    background: var(--auth-orange);
}

.pilot-auth__tagline {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.pilot-auth__perks-wrap {
    margin: 40px 0 0;
}

.pilot-auth__panel .pilot-auth__perks-wrap {
    display: none;
}

.pilot-auth__perks-title {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #fff !important;
}

.pilot-auth__perks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pilot-auth__perks li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9375rem;
}

.pilot-auth__perks li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pilot-auth__perks span {
    color: var(--auth-orange);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pilot-auth__panel {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 10vw 48px;
    overflow: auto;
}

.pilot-auth__back {
    position: absolute;
    top: 28px;
    right: 40px;
    z-index: 5;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    font-size: 0.8125rem;
    color: var(--auth-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    pointer-events: auto;
}

.pilot-auth__back:hover {
    color: var(--auth-text);
}

.pilot-auth__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin: 0 0 40px;
    border-bottom: 1px solid var(--auth-line);
}

.pilot-auth__tab,
.pilot-auth__heading {
    margin: 0;
    padding: 0 0 14px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #b0b0b0;
    text-decoration: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.pilot-auth__tab.is-active,
.pilot-auth__heading {
    color: var(--auth-text);
    font-weight: 700;
    border-bottom-color: var(--auth-orange);
}

/*
 * The panel is a column flex. Default align-items: stretch makes the h1
 * as wide as the column, so border-bottom paints a full-bleed bar with
 * empty paper to the right of the title. align-self: start keeps the
 * box (and the orange rule) as wide as the words, same as the login tab.
 */
.pilot-auth__heading {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}

.pilot-auth__form,
.pilot-auth__form .woocommerce-form-row {
    margin: 0;
}

.pilot-auth__form .woocommerce-form-row {
    margin-bottom: 28px;
}

.pilot-auth__form label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    color: #666;
}

.pilot-auth__form label .required {
    color: var(--auth-orange);
}

.pilot-auth__stage {
    position: relative;
    min-height: 360px;
}

.pilot-auth__pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.pilot-auth__pane.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.pilot-auth[data-tab="login"] .pilot-auth__pane[data-auth-pane="register"] {
    transform: translateX(18px);
}

.pilot-auth[data-tab="register"] .pilot-auth__pane[data-auth-pane="login"] {
    transform: translateX(-18px);
}

body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="text"],
body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="email"],
body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="password"],
body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="tel"],
body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="date"],
.pilot-auth__form input[type="text"],
.pilot-auth__form input[type="email"],
.pilot-auth__form input[type="password"],
.pilot-auth__form input[type="tel"],
.pilot-auth__form input[type="date"] {
    width: 100% !important;
    height: 44px !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--auth-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: var(--auth-text) !important;
    box-shadow: none !important;
}

.pilot-auth__form input:focus {
    outline: none;
    border-bottom-color: var(--auth-text);
}

.pilot-auth__form input::placeholder {
    color: #c4c0ba;
}

.pilot-auth__password-row {
    position: relative;
}

.pilot-auth__show {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--auth-orange);
    font-size: 0.8125rem;
    cursor: pointer;
}

.pilot-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 28px;
}

.pilot-auth__row .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.pilot-auth__forgot {
    color: var(--auth-orange);
    text-decoration: none;
    font-size: 0.875rem;
}

.pilot-auth__forgot:hover {
    text-decoration: underline;
}

.pilot-auth__submit {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 22px !important;
    margin: 8px 0 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.pilot-auth__submit .ct-button-loader {
    display: none;
    width: 22px;
    height: 22px;
    color: currentColor;
}

.pilot-auth__submit[data-button-state="loading"] {
    pointer-events: none;
}

.pilot-auth__submit[data-button-state="loading"] > span {
    visibility: hidden;
}

.pilot-auth__submit[data-button-state="loading"] .ct-button-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -11px 0 0 -11px;
}

.pilot-auth__submit:hover {
    background: var(--auth-orange) !important;
}

.pilot-auth__arrow {
    font-size: 1.125rem;
}

.pilot-auth__hint {
    margin: 28px 0 0;
    font-size: 0.8125rem;
    color: var(--auth-muted);
}

.pilot-auth__hint a {
    color: var(--auth-text);
    text-decoration: none;
}

.pilot-auth__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.pilot-auth__legal,
.pilot-auth__form .woocommerce-privacy-policy-text,
.pilot-auth__form > p:not(.woocommerce-form-row) {
    margin: 0 0 28px;
    padding: 16px 0 0;
    border-top: 1px solid var(--auth-line);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #7a7a7a;
}

.pilot-auth__form .woocommerce-privacy-policy-text a,
.pilot-auth__form > p a {
    color: var(--auth-orange);
}

/*
 * Same muted copy as .pilot-auth__legal but without the top rule. The rule on
 * .pilot-auth__legal exists to fence the privacy-policy footer off from the
 * form above it; on an opening line it just draws a stray hairline under the
 * heading's orange rule with nothing in between.
 */
.pilot-auth__intro {
    /* .pilot-auth__heading carries margin-bottom: -1px so its rule can overlap
       the tab underline, so the gap has to come from here. */
    margin: 24px 0 28px;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #7a7a7a;
}

.pilot-auth__intro-note {
    color: var(--auth-orange);
    font-weight: 600;
}

.pilot-auth__notices {
    margin-bottom: 20px;
}

.pilot-auth__notices .woocommerce-error,
.pilot-auth__notices .woocommerce-message,
.pilot-auth__notices .woocommerce-info {
    position: relative;
    margin: 0 0 12px;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--auth-line);
    background: transparent !important;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--auth-text);
}

.pilot-auth__notices .woocommerce-error,
.pilot-auth__notices .woocommerce-error li {
    color: #c62828;
}

.pilot-auth__notices .woocommerce-error::before,
.pilot-auth__notices .woocommerce-error::after,
.pilot-auth__notices .woocommerce-message::before,
.pilot-auth__notices .woocommerce-message::after,
.pilot-auth__notices .woocommerce-info::before,
.pilot-auth__notices .woocommerce-info::after,
.pilot-auth__notices .woocommerce-error li::before,
.pilot-auth__notices .woocommerce-error li::after {
    content: none !important;
    display: none !important;
}

.pilot-auth__notices .woocommerce-error li,
.pilot-auth__notices .woocommerce-message li,
.pilot-auth__notices .woocommerce-info li {
    margin: 0;
    padding: 0;
    background: none;
    list-style: none;
}

.pilot-auth__notices svg,
.pilot-auth__notices [class*="icon"] {
    display: none !important;
}

.pilot-auth__notices a {
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 1 !important;
}

.pilot-auth__notices .woocommerce-error a {
    color: #c62828 !important;
}

@media (max-width: 860px) {
    html.pilot-auth-html,
    html.pilot-auth-html body.pilot-auth-screen,
    body.pilot-auth-screen {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: var(--auth-dark) !important;
        height: auto !important;
        min-height: 100dvh;
    }

    body.pilot-auth-screen #main-container,
    body.pilot-auth-screen main#main,
    body.pilot-auth-screen #main,
    body.pilot-auth-screen .site-main {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce,
    body.pilot-auth-screen .woocommerce-account:not(.logged-in) .woocommerce {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pilot-auth {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        background: var(--auth-dark);
    }

    .pilot-auth::after {
        display: none;
    }

    .pilot-auth__brand,
    .pilot-auth__panel,
    .pilot-auth__back {
        z-index: 2;
        width: 100%;
        max-width: none;
        margin: 0;
        flex: 0 0 auto;
        box-sizing: border-box;
        background: transparent;
    }

    .pilot-auth__brand {
        position: static;
        overflow: visible;
        justify-content: flex-start;
        padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 0;
        min-height: 0;
    }

    .pilot-auth__brand > *:not(.pilot-auth__watermark) {
        position: relative;
        z-index: 2;
    }

    .pilot-auth__panel {
        position: relative;
    }

    .pilot-auth__watermark {
        display: none;
    }

    .pilot-auth__hero {
        margin: 0;
        max-width: 100%;
        padding-right: 88px;
    }

    .pilot-auth__name {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: 0.32em;
        font-size: clamp(0.92rem, 4.4vw, 1.15rem);
        line-height: 1.1;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .pilot-auth__rule {
        width: 32px;
        height: 3px;
        margin: 8px 0 6px;
    }

    .pilot-auth__tagline {
        font-size: 0.75rem;
    }

    .pilot-auth__brand .pilot-auth__perks-wrap {
        display: none;
    }

    .pilot-auth__panel .pilot-auth__perks-wrap {
        display: block;
        margin: 0 0 28px;
    }

    .pilot-auth__perks-title {
        color: #fff !important;
        font-size: 0.6875rem;
        letter-spacing: 0.2em;
        margin-bottom: 2px;
    }

    .pilot-auth__perks li {
        padding: 7px 0;
        font-size: 0.8125rem;
        gap: 12px;
    }

    .pilot-auth__perks li:last-child {
        border-bottom: none;
    }

    .pilot-auth__panel {
        padding: 18px 24px calc(36px + env(safe-area-inset-bottom, 0px));
        justify-content: flex-start;
        min-height: 0;
        color: #fff;
    }

    .pilot-auth__back {
        position: absolute;
        top: calc(22px + env(safe-area-inset-top, 0px));
        right: 24px;
        width: auto;
        z-index: 3;
        color: rgba(255, 255, 255, 0.62);
    }

    .pilot-auth__back:hover {
        color: #fff;
    }

    .pilot-auth__tabs {
        margin-bottom: 22px;
        gap: 28px;
        border-bottom-color: rgba(255, 255, 255, 0.16);
    }

    .pilot-auth__tab,
    .pilot-auth__heading {
        font-size: 1.375rem;
        color: rgba(255, 255, 255, 0.4);
    }

    .pilot-auth__tab.is-active,
    .pilot-auth__heading {
        color: #fff;
    }

    .pilot-auth__stage {
        min-height: 280px;
    }

    .pilot-auth__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pilot-auth__form .woocommerce-form-row {
        margin-bottom: 22px;
    }

    .pilot-auth__form label,
    body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row label {
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.82) !important;
    }

    body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="text"],
    body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="email"],
    body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="password"],
    body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="tel"],
    body.pilot-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-row input[type="date"],
    .pilot-auth__form input[type="text"],
    .pilot-auth__form input[type="email"],
    .pilot-auth__form input[type="password"],
    .pilot-auth__form input[type="tel"],
    .pilot-auth__form input[type="date"] {
        height: 42px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #fff !important;
        color-scheme: dark;
    }

    .pilot-auth__form input:focus {
        border-bottom-color: #fff;
    }

    .pilot-auth__form input::placeholder {
        color: rgba(255, 255, 255, 0.38);
    }

    .pilot-auth__row .woocommerce-form-login__rememberme {
        color: rgba(255, 255, 255, 0.78);
    }

    .pilot-auth__submit {
        background: #fff !important;
        color: #111 !important;
    }

    .pilot-auth__submit:hover {
        background: var(--auth-orange) !important;
        color: #fff !important;
    }

    .pilot-auth__hint {
        color: rgba(255, 255, 255, 0.55);
    }

    .pilot-auth__hint a {
        color: #fff;
    }

    .pilot-auth__legal,
    .pilot-auth__form .woocommerce-privacy-policy-text,
    .pilot-auth__form > p:not(.woocommerce-form-row) {
        margin-bottom: 22px;
        padding-top: 18px;
        border-top-color: rgba(255, 255, 255, 0.16);
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.55);
    }

    .pilot-auth__intro {
        margin: 20px 0 22px;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.55);
    }

    .pilot-auth__notices .woocommerce-error,
    .pilot-auth__notices .woocommerce-message,
    .pilot-auth__notices .woocommerce-info {
        border-bottom-color: rgba(255, 255, 255, 0.16);
        color: #fff;
    }

    .pilot-auth__notices .woocommerce-error,
    .pilot-auth__notices .woocommerce-error li,
    .pilot-auth__notices .woocommerce-error a {
        color: #ff6b6b !important;
    }
}
