/* Shared editorial authentication layout. Account dashboard styles stay separate. */
body.auth-page {
    --auth-ink: #473b31;
    --auth-muted: #818a7e;
    --auth-accent: #c76836;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #f7f7f2;
    background-image: none;
    color: var(--auth-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

.fs-auth-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(380px, 1fr);
    gap: 16px;
    min-height: calc(100dvh - 42px);
    padding: 16px 16px 6px;
}

.fs-auth-layout * {
    box-sizing: border-box;
}

.fs-auth-layout a {
    color: inherit;
    text-decoration: none;
}

.fs-auth-layout a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fs-auth-story {
    position: relative;
    isolation: isolate;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 16px;
    padding: clamp(28px, 3.5vw, 60px);
    background: #1d3b2f;
    color: #f6f5e9;
}

.fs-auth-cover {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.fs-auth-story::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 0;
    background: linear-gradient(180deg, #0b241e26 5%, #0b241e00 38%, #0b241e7a 65%, #0b241ef2 100%);
}

.fs-auth-story-brand {
    position: absolute;
    top: 32px;
    left: 36px;
}

.fs-auth-story-brand img {
    width: 145px;
    height: 40px;
    object-fit: contain;
    object-position: left;
}

.fs-auth-story-copy {
    margin-top: 260px;
    max-width: 520px;
}

.fs-auth-eyebrow {
    margin: 0 0 14px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--auth-accent);
}

.fs-auth-story .fs-auth-eyebrow {
    color: #e5cc91;
}

.fs-auth-story h1 {
    margin: 0 0 20px;
    color: #fffef2;
    font-size: clamp(40px, 4.5vw, 68px);
    font-weight: 400;
    letter-spacing: -2.2px;
    line-height: 1.1;
}

.fs-auth-story-copy > p:not(.fs-auth-eyebrow) {
    max-width: 350px;
    margin-bottom: 0;
    color: #d6dfd3;
    font-size: 12px;
    line-height: 1.85;
}

.fs-auth-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-top: 22px;
    margin-top: 25px;
    border-top: 1px solid #ffffff36;
    font-size: 10px;
    color: #e3e8db;
}

.fs-auth-capabilities b {
    margin-right: 7px;
    color: #d5b875;
    font-size: 9px;
    font-weight: 500;
}

.fs-auth-story-signoff {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    font-size: 8px;
    letter-spacing: .5px;
    color: #b1c1ad;
}

.fs-auth-story-signoff span:first-child {
    color: #dcc995;
    letter-spacing: 1.6px;
}

.fs-auth-form-side {
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    min-width: 0;
    padding: 17px clamp(28px, 4.5vw, 78px) 12px;
}

.fs-auth-topnav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    width: 100%;
    font-size: 11px;
    color: #8b9183;
}

.fs-auth-topnav a[aria-current="page"] {
    color: var(--auth-ink);
    font-weight: 600;
}

.fs-auth-topnav span {
    margin-left: 7px;
    color: var(--auth-accent);
}

.fs-auth-form-wrap {
    align-self: center;
    position: relative;
    width: 100%;
    max-width: 375px;
    margin: 42px 0;
}

.fs-auth-brand {
    display: block;
    width: fit-content;
    margin: 0 0 38px;
}

.fs-auth-brand img {
    display: block;
    width: 154px;
    height: 42px;
    object-fit: contain;
    object-position: left;
}

.fs-auth-form-wrap h2 {
    margin: 0 0 12px;
    color: var(--auth-ink);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.fs-auth-subtitle {
    margin: 0 0 27px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.8;
}

.fs-auth-account-email {
    overflow-wrap: anywhere;
    color: #60705d;
}

.fs-auth-field {
    margin-bottom: 18px;
}

.fs-auth-field > label,
.fs-auth-gender legend {
    display: block;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    color: #52674f;
}

.fs-auth-input-wrap {
    position: relative;
}

.fs-auth-form .fs-auth-field input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 12px 13px;
    border: 1px solid #daddd1;
    border-radius: 6px;
    outline: none;
    background: #fffefb;
    color: #284c3c;
    font: inherit;
    font-size: 13px;
    transition: border-color .15s, box-shadow .15s;
}

.fs-auth-field input::placeholder {
    color: #a7aca1;
    opacity: 1;
}

.fs-auth-form .fs-auth-field input:focus {
    border-color: #7f9b80;
    box-shadow: 0 0 0 3px #b65c310c;
    background: #fff;
}

.fs-auth-form .fs-auth-field input[type="password"] {
    padding-right: 60px;
}

.fs-auth-password-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #71836b;
    font-size: 10px;
    cursor: pointer;
}

.fs-auth-password-toggle:hover {
    background: #eef0e6;
}

.fs-auth-form .fs-auth-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin-top: 5px;
    padding: 12px 17px;
    border: 1px solid #b65c31;
    border-radius: 6px;
    background: #b65c31;
    color: #fffef4;
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.fs-auth-submit:hover {
    background: #a5512b;
}

.fs-auth-submit span {
    font-size: 17px;
    font-weight: 400;
}

.fs-auth-submit:disabled {
    opacity: .6;
    cursor: progress;
}

.fs-auth-forgot {
    margin: -5px 0 17px;
    text-align: right;
    font-size: 11px;
    color: #718168;
}

.fs-auth-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    font-size: 10px;
    color: #929888;
}

.fs-auth-switch a,
.fs-auth-back {
    color: #466343;
    font-weight: 500;
}

.fs-auth-social .social-signin {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 23px 0 0;
    padding: 0;
}

.fs-auth-social .social-label {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 5px;
    font-size: 9px;
    color: #959c8e;
}

.fs-auth-social .social-label::before,
.fs-auth-social .social-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e4d9;
}

.fs-auth-social .provider-icon {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 9px;
    width: auto;
    height: 43px;
    border: 1px solid #daddd1;
    border-radius: 6px;
    background: #fffefb;
    color: #5d6b58;
    box-shadow: none;
    font-size: 11px;
}

.fs-auth-social .provider-icon:hover {
    background: #edf0e6;
    border-color: #a4b19a;
}

.fs-auth-social .provider-icon::after {
    content: attr(data-social-provider);
}

.fs-auth-form #response:not(:empty),
.fs-auth-social .social-feedback:not([hidden]) {
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.7;
}

.fs-auth-support {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e1e4d7;
    color: #919988;
    font-size: 10px;
}

.fs-auth-support a {
    color: #62785a;
    font-weight: 500;
}

.fs-auth-support a span {
    color: var(--auth-accent);
    margin-left: 5px;
}

.fs-auth-protection {
    max-width: 375px;
    margin: 12px 0 0;
    text-align: center;
    color: #a2a797;
    font-size: 8px;
    line-height: 1.8;
}

.fs-auth-protection a {
    text-decoration: underline;
}

.fs-auth-steps {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 26px;
    font-size: 10px;
    color: #a5ab9c;
}

.fs-auth-steps b {
    margin-right: 5px;
    font-size: 9px;
    font-weight: 500;
}

.fs-auth-steps .is-current {
    color: #b65c31;
    font-weight: 600;
}

.fs-auth-steps .is-complete {
    color: #819074;
}

.fs-auth-gender {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.fs-auth-gender label {
    margin-right: 18px;
    font-size: 12px;
    font-weight: 400;
    color: #607059;
}

.fs-auth-gender input {
    accent-color: #b65c31;
}

.fs-auth-hint {
    margin: 0 0 18px;
    color: #87917e;
    font-size: 10px;
    line-height: 1.8;
}

.fs-auth-alert {
    padding: 15px;
    margin-bottom: 18px;
    border: 1px solid #e6d4bc;
    border-radius: 6px;
    background: #fbf4e8;
    color: #866343;
    font-size: 12px;
    line-height: 1.8;
}

.fs-auth-back {
    font-size: 11px;
}

.fs-auth-recovery-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #daddd1;
    border-radius: 6px;
    background: #fffefb;
}

.fs-auth-recovery-choice strong,
.fs-auth-recovery-choice small {
    display: block;
    font-weight: 400;
    font-size: 12px;
}

.fs-auth-recovery-choice small {
    margin-top: 5px;
    font-size: 10px;
    color: #87917e;
}

body.auth-page .fs-auth-footer {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 21px;
    flex-shrink: 0;
    width: auto;
    padding: 8px 30px 12px;
    margin: 0;
    background: transparent;
    color: #959d8c;
    font-size: 9px;
}

.fs-auth-footer > span {
    margin-right: auto;
}

body.auth-page .fs-auth-footer a {
    margin: 0;
    color: #85917b;
    font-size: 9px;
}

.fs-auth-layout :focus-visible {
    outline: 2px solid #a3ad81;
    outline-offset: 3px;
}

@media (min-width: 1600px) {
    .fs-auth-form-wrap {
        max-width: 405px;
    }
}

@media (max-width: 1050px) {
    .fs-auth-layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    }

    .fs-auth-form-side {
        padding-right: 26px;
        padding-left: 26px;
    }

    .fs-auth-capabilities {
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .fs-auth-layout {
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - 60px);
        padding: 0;
    }

    .fs-auth-story {
        display: none;
    }

    .fs-auth-form-side {
        flex: 1;
        padding: 24px clamp(22px, 8vw, 70px);
    }

    .fs-auth-form-wrap {
        margin: 36px 0;
        max-width: 400px;
    }

    .fs-auth-brand {
        margin-bottom: 30px;
    }

    .fs-auth-form-wrap h2 {
        font-size: 32px;
    }

    body.auth-page .fs-auth-footer {
        justify-content: center;
        padding: 12px 20px 20px;
        gap: 8px 16px;
    }

    .fs-auth-footer > span {
        flex: 0 0 100%;
        text-align: center;
        margin: 0 0 5px;
    }
}

@media (max-height: 730px) and (min-width: 768px) {
    .fs-auth-form-wrap {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .fs-auth-brand {
        margin-bottom: 23px;
    }

    .fs-auth-story {
        min-height: 580px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fs-auth-layout * {
        transition: none;
    }
}

/* Fit desktop authentication to the viewport; retain readable mobile flow. */
body.auth-page {
    background: #f8f5ef;
}

body.auth-page .grecaptcha-badge {
    visibility: hidden;
}

.fs-auth-brand img {
    width: 240px;
    height: 54px;
}

.fs-auth-brand {
    margin-bottom: 26px;
}

.fs-auth-story {
    background: #41382f;
}

.fs-auth-story::before {
    background: linear-gradient(180deg, #30251b00 20%, #30251b00 48%, #30251b3b 68%, #30251b65 100%);
}

.fs-auth-story h1 {
    font-size: clamp(36px, 3.7vw, 58px);
}

.fs-auth-cover {
    object-position: center bottom;
}

.fs-auth-story-copy {
    margin-top: auto;
    margin-bottom: 140px;
}

.fs-auth-story-signoff,
.fs-auth-capabilities {
    display: none;
}

.fs-auth-form:has(#auth-security_code) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
}

.fs-auth-form:has(#auth-security_code) > :not(.fs-auth-field),
.fs-auth-form:has(#auth-security_code) > .fs-auth-field:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    body.auth-page:has(.fs-auth-layout) {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .fs-auth-layout {
        height: calc(100dvh - 32px);
        min-height: 0;
        padding: 12px 12px 5px;
        overflow: hidden;
    }

    .fs-auth-story {
        min-height: 0;
    }

    .fs-auth-form-side {
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr) auto;
        padding-top: 8px;
        padding-bottom: 4px;
    }

    .fs-auth-form-wrap {
        margin-top: 18px;
        margin-bottom: 18px;
    }

    body.auth-page .fs-auth-footer {
        min-height: 32px;
        padding-top: 4px;
        padding-bottom: 8px;
    }
}

@media (max-height: 760px) and (min-width: 768px) {
    .fs-auth-brand img {
        width: 215px;
        height: 46px;
    }

    .fs-auth-brand {
        margin-bottom: 18px;
    }

    .fs-auth-form-wrap {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .fs-auth-form-wrap h2 {
        font-size: 29px;
        margin-bottom: 8px;
    }

    .fs-auth-subtitle {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .fs-auth-field {
        margin-bottom: 13px;
    }

    .fs-auth-form .fs-auth-field input {
        height: 42px;
    }

    .fs-auth-password-toggle {
        top: 3px;
    }

    .fs-auth-form .fs-auth-submit {
        min-height: 42px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .fs-auth-social .social-signin {
        margin-top: 17px;
    }

    .fs-auth-social .provider-icon {
        height: 39px;
    }

    .fs-auth-switch {
        margin-top: 15px;
    }

    .fs-auth-support {
        margin-top: 18px;
        padding-top: 12px;
    }

    .fs-auth-steps {
        margin-bottom: 18px;
    }

    .fs-auth-hint {
        margin-bottom: 12px;
        font-size: 9px;
    }

    .fs-auth-form-wrap .fs-auth-eyebrow {
        margin-bottom: 9px;
    }

    .fs-auth-story-copy {
        margin-bottom: 110px;
    }
}

@media (max-width: 767px) {
    .fs-auth-brand img {
        width: 225px;
        height: 50px;
    }
}

/* Full-bleed photograph with independently sized, authentic product marks. */
.fs-auth-story {
    background: #41382f;
}

.fs-auth-cover {
    object-fit: cover;
    object-position: center 44%;
}

.fs-auth-story::before {
    display: block;
    bottom: 80px;
    background: linear-gradient(180deg, #2c211600 35%, #2c211638 60%, #2c2116d6 100%);
}

.fs-auth-story-brand {
    z-index: 1;
    top: 30px;
    left: 34px;
}

.fs-auth-story-brand img {
    width: 175px;
    height: 40px;
}

.fs-auth-story-copy {
    position: relative;
    z-index: 1;
    margin-bottom: 105px;
    max-width: 440px;
    padding: 0;
}

.fs-auth-story-copy > p:not(.fs-auth-eyebrow) {
    color: #eadfd2;
}

.fs-auth-products {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 20px 46px 20px 26px;
    border-top: 1px solid #eee8df;
    background: #fff;
}

.fs-auth-products-viewport {
    overflow-x: auto;
    scrollbar-width: none;
}

.fs-auth-products-viewport::-webkit-scrollbar {
    display: none;
}

.fs-auth-products-track {
    display: flex;
    width: max-content;
}

.fs-auth-products-group {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
}

.fs-auth-products[data-loop-ready="true"] .fs-auth-products-viewport {
    overflow: hidden;
}

.fs-auth-products[data-loop-ready="true"] .fs-auth-products-track {
    animation: fs-auth-products-slide 44s linear infinite;
}

.fs-auth-products:hover .fs-auth-products-track,
.fs-auth-products-viewport:focus-within .fs-auth-products-track,
.fs-auth-products[data-paused="true"] .fs-auth-products-track {
    animation-play-state: paused;
}

.fs-auth-products-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 26px;
    height: 26px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid #e9e1d6;
    border-radius: 50%;
    background: #fff;
    color: #917558;
    font-size: 10px;
    cursor: pointer;
}

@keyframes fs-auth-products-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.fs-auth-product {
    position: relative;
    display: block;
    flex: 0 0 120px;
    width: 120px;
    min-width: 0;
    height: 36px;
    overflow: hidden;
}

.fs-auth-product img {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateY(-50%);
}

.fs-auth-product--technewage {
    border-radius: 3px;
    background: #001b24;
}

@media (min-width: 1600px) {
    .fs-auth-products {
        padding: 24px 46px 24px 32px;
    }
}

@media (min-width: 768px) and (max-width: 1050px) {
    .fs-auth-products {
        padding: 18px 42px 18px 18px;
    }

    .fs-auth-product {
        flex-basis: 105px;
        width: 105px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fs-auth-products[data-loop-ready="true"] .fs-auth-products-track {
        animation: none;
    }

    .fs-auth-products[data-loop-ready="true"] .fs-auth-products-viewport {
        overflow-x: auto;
    }

    .fs-auth-products-group[aria-hidden="true"] {
        display: none;
    }

    .fs-auth-products-toggle {
        display: none;
    }
}
/* User-confirmed official stacked logo, used as-is without recoloring. */
.fs-auth-brand img {
    width: 160px;
    height: 140px;
    object-fit: contain;
    object-position: left center;
}

.fs-auth-brand {
    margin-bottom: 16px;
}

.fs-auth-story-brand img {
    width: 115px;
    height: 102px;
    object-fit: contain;
    object-position: left top;
}

@media (max-height: 760px) and (min-width: 768px) {
    .fs-auth-brand img {
        width: 120px;
        height: 105px;
    }

    .fs-auth-brand {
        margin-bottom: 12px;
    }

    .fs-auth-support {
        margin-top: 14px;
        padding-top: 10px;
    }
}

@media (max-width: 767px) {
    .fs-auth-brand img {
        width: 150px;
        height: 132px;
    }
}
