/* Shared FarmicleGrow sign-in stage.
   Desktop: sharp field backdrop, framed photo, scooped form card.
   Narrow login screens show the form. Sign-up screens keep the Skip / Next slider. */

.fg-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    color: #1c2b22;
    font-family: Inter, system-ui, sans-serif;
    background: #143018;
}

.fg-stage-bg {
    position: fixed;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.fg-stage-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 32, 16, .08);
}

.fg-stage-board {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    align-items: stretch;
    width: min(1280px, 90vw);
    height: min(780px, 82vh);
    min-height: 640px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 12px solid #fff;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(10, 28, 12, .22);
}

.fg-stage-frame {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-height: 0;
    height: 100%;
    width: calc(100% + 180px);
    margin-right: -180px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #123;
    box-shadow: none;
}

.fg-stage-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
}

.fg-stage-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.fg-stage-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fg-stage-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, .2) 58%, rgba(3, 18, 8, .88) 100%);
    pointer-events: none;
}

.fg-stage-chip {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.fg-stage-chip img,
.fg-stage-logo img {
    width: 44px;
    height: 44px;
    background: #fff;
    object-fit: cover;
}

.fg-stage-chip img {
    border-radius: 14px;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
}

.fg-stage-chip strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fg-stage-chip span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.fg-stage-caption {
    position: absolute;
    left: 28px;
    right: 64px;
    bottom: 108px;
    z-index: 3;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.fg-stage-caption p {
    display: none;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fg-stage-caption h2 {
    margin: 0;
    max-width: 10ch;
    color: #fff;
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: .92;
}

.fg-stage-caption h2 span,
.fg-stage-caption h2 em {
    display: block;
    max-width: none;
    margin: 0;
    color: #fff;
    font-size: 1em;
    font-weight: 800;
    font-style: normal;
    line-height: .92;
    letter-spacing: -.05em;
}

.fg-stage-caption h2 em {
    color: #d6f25a;
}

.fg-stage-points {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.fg-stage-points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fg-stage-points li + li {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .45);
}

.fg-stage-points i {
    color: #d6f25a;
    font-size: 18px;
}

.fg-stage-caption [data-fg-text] {
    display: block;
    max-width: 34ch;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.fg-stage-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    display: flex;
    bottom: 62px;
    justify-content: flex-start;
    left: 28px;
    right: auto;
    gap: 8px;
}

.fg-stage-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.fg-stage-dots button.is-active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
}

.fg-stage-skip,
.fg-stage-mobile-bar,
.fg-stage-back {
    display: none;
}

.fg-stage-card {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    height: 100%;
    align-items: center;
    margin-left: 0;
    padding: 36px 42px 32px 168px;
    overflow: visible;
    border-radius: 0;
    background: #fff;
    filter: none;
    -webkit-clip-path: url("#fg-stage-wave");
    clip-path: url("#fg-stage-wave");
}

.fg-stage-leaf {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.fg-stage-leaf-top {
    top: -8px;
    right: -6px;
    width: 168px;
    height: 168px;
}

.fg-stage-leaf-bottom {
    right: 8px;
    bottom: 6px;
    width: 120px;
    height: 100px;
    opacity: .9;
}

.fg-stage-form {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
}

.fg-stage-logo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 16px;
    color: #0f6a32;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
}

.fg-stage-logo img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.fg-stage-portal,
.fg-stage-card .fg-auth-kicker {
    margin: 0 0 6px;
    color: #1f7a34;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.fg-stage-card h1,
.fg-stage-card h3,
.fg-stage-card h4,
.fg-stage-card .display-5 {
    margin: 0 0 8px !important;
    color: #143d24 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
    line-height: 1.1 !important;
    text-align: left;
}

.fg-stage-card .fg-auth-lead,
.fg-stage-card .sign-in-title p,
.fg-stage-card .section-header .description,
.fg-stage-card .text-center > p,
.fg-stage-card .card p {
    margin: 0 0 22px;
    color: #8b978f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.fg-stage-card .sign-in,
.fg-stage-card .password-reset-page,
.fg-stage-card .container,
.fg-stage-card .row,
.fg-stage-card .col-lg-5,
.fg-stage-card .col-xl-5,
.fg-stage-card .col-md-6,
.fg-stage-card .col-md-8,
.fg-stage-card .sign-in-container,
.fg-stage-card .sign-in-container-inner,
.fg-stage-card .reset-form,
.fg-stage-card .card,
.fg-stage-card .card-body,
.fg-stage-card .fg-auth-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.fg-stage-card .row { display: block; }
.fg-stage-card .sign-in-image,
.fg-stage-card .col-lg-7,
.fg-stage-card .sign-in-logo { display: none !important; }

.fg-stage-card label,
.fg-stage-card .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #3c4d43;
    font-size: 14px;
    font-weight: 650;
}

.fg-stage-card label i {
    color: #6d7c73;
    font-size: 15px;
}

.fg-stage-card .fg-auth-field,
.fg-stage-card .sign-in-form-group,
.fg-stage-card .mb-4,
.fg-stage-card .col-12 {
    margin-bottom: 18px;
}

.fg-stage-card input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
.fg-stage-card select,
.fg-stage-card textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px !important;
    border: 1px solid #e3ebe6 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #17241c;
    font-size: 15px;
}

.fg-stage-card input:focus,
.fg-stage-card select:focus,
.fg-stage-card textarea:focus {
    outline: none;
    border-color: #146c36 !important;
}

.fg-stage-card .input-group,
.fg-stage-card .password-box,
.fg-stage-card .phone-input {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 14px;
    border: 1px solid #e3ebe6 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.fg-stage-card .input-group:focus-within,
.fg-stage-card .password-box:focus-within,
.fg-stage-card .phone-input:focus-within {
    border-color: #146c36 !important;
}

.fg-stage-card .input-group input,
.fg-stage-card .password-box input,
.fg-stage-card .phone-input input {
    border: 0 !important;
    min-height: 46px;
    padding: 10px 0 !important;
    background: transparent !important;
}

.fg-stage-card .input-group-text,
.fg-stage-card .password-icon,
.fg-stage-card .confirm_password_icon {
    display: grid;
    place-items: center;
    border: 0 !important;
    background: transparent !important;
    color: #5d7266;
    cursor: pointer;
}

.fg-stage-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    color: #24362c;
    font-size: 14px;
    font-weight: 500;
}

.fg-stage-card .rember,
.fg-stage-card .fg-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 22px;
}

.fg-stage-card .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1a8f3e;
}

.fg-stage-card .fg-auth-forgot,
.fg-stage-card .rember-password a {
    color: #178a3a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fg-stage-card .btn-link,
.fg-stage-card .signup-account a,
.fg-stage-card .login-query a {
    color: #1a8f3e;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fg-stage-card button[type="submit"],
.fg-stage-card .btn-1,
.fg-stage-card .fg-auth-submit {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin-top: 4px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #0e6a32 !important;
    color: #fff !important;
    transition: background-color .15s ease;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.fg-stage-card button[type="submit"]::after,
.fg-stage-card .btn-1::after {
    content: "→";
    position: static;
    display: inline;
    width: auto;
    height: auto;
    margin-left: 8px;
    background: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    transform: none;
}

.fg-stage-card button[type="submit"]:hover,
.fg-stage-card .btn-1:hover,
.fg-stage-card .fg-auth-submit:hover {
    background: #0b5929 !important;
}

.fg-stage-card button[type="submit"]:focus-visible,
.fg-stage-card .btn-1:focus-visible {
    outline: 3px solid #d6f25a;
    outline-offset: 2px;
}

.fg-stage-card .btn-1 span { display: none; }

.fg-stage-card .signup-account,
.fg-stage-card .media-login-border,
.fg-stage-card .login-query {
    margin-top: 16px;
    color: #8b978f;
    font-size: 14px;
    text-align: center;
}

.fg-stage-card .media-login-border {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fg-stage-card .media-login-border::before,
.fg-stage-card .media-login-border::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e8e4;
}

.fg-stage-card .media-login-border h5 {
    margin: 0;
    color: #8b978f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.fg-stage-card .media-login ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.fg-stage-card .media-login ul a {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #d7e3da;
    border-radius: 999px;
    background: #fff;
}

.fg-stage-card .alert {
    margin-bottom: 14px;
    border-radius: 12px;
}

.fg-stage-card .invalid-feedback,
.fg-stage-card .text-danger {
    font-size: 12.5px;
}

.fg-stage-card .sign-in-form-name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 980px) {
    .fg-stage {
        display: block;
        background: #fff;
    }
    .fg-stage-bg { display: none; }

    .fg-stage-board {
        display: block;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .fg-stage-frame {
        width: auto;
        margin-right: 0;
    }

    .fg-stage-frame,
    .fg-stage-skip,
    .fg-stage-mobile-bar,
    .fg-stage-back {
        display: none;
    }

    .fg-stage-points,
    .fg-stage-leaf { display: none; }

    .fg-stage-form { width: 100%; }

    .fg-stage-card {
        display: flex;
        width: min(440px, 100%);
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 auto;
        padding: 48px 22px 36px;
        overflow: visible;
        border-radius: 0;
        filter: none;
        box-shadow: none;
        margin-left: 0;
        -webkit-clip-path: none;
        clip-path: none;
        -webkit-mask-image: none;
        mask-image: none;
        align-items: stretch;
        justify-content: flex-start;
    }

    .fg-stage-onboarding .fg-stage-frame {
        position: fixed;
        inset: 0;
        z-index: 3;
        display: block;
        height: 100vh;
        height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .fg-stage-onboarding .fg-stage-chip { display: none; }

    .fg-stage-onboarding .fg-stage-skip {
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 4;
        display: inline-flex;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    }

    .fg-stage-onboarding .fg-stage-caption {
        top: 22%;
        bottom: auto;
        text-align: center;
    }

    .fg-stage-onboarding .fg-stage-caption p {
        display: block;
        font-size: 22px;
        letter-spacing: .14em;
    }

    .fg-stage-onboarding .fg-stage-caption h2 {
        max-width: none;
        margin: 0 auto;
        font-size: 40px;
        color: #fff;
    }

    .fg-stage-onboarding .fg-stage-caption [data-fg-text] {
        margin-right: auto;
        margin-left: auto;
    }

    .fg-stage-onboarding .fg-stage-dots {
        bottom: 118px;
        display: flex;
    }

    .fg-stage-onboarding .fg-stage-caption h2 em { color: #fff; }

    .fg-stage-onboarding .fg-stage-mobile-bar {
        position: absolute;
        right: 22px;
        bottom: 28px;
        left: 22px;
        z-index: 4;
        display: block;
    }

    .fg-stage-next {
        width: 100%;
        min-height: 52px;
        border: 0;
        border-radius: 999px;
        background: #fff;
        color: #173222;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .fg-stage-onboarding .fg-stage-card { display: none; }

    .fg-stage-onboarding.fg-stage-form-open .fg-stage-frame { display: none; }
    .fg-stage-onboarding.fg-stage-form-open .fg-stage-card { display: flex; }

    .fg-stage-onboarding .fg-stage-back {
        display: none;
        margin-bottom: 12px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #1a8f3e;
        font-size: 14px;
        font-weight: 700;
    }

    .fg-stage-onboarding.fg-stage-form-open .fg-stage-back { display: inline-flex; }

    .fg-stage-card .sign-in-form-name { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .fg-stage-slide { transition: none; }
}
