/* Apply2Grow partner portal: self-hosted fonts and the split registration layout. */

@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

.fi-simple-header-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Registration: a navy information panel beside the form. */
.fi-simple-main:has(.a2g-auth) {
    padding: 0;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-block: 2rem;
}

.a2g-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'brand' 'form' 'steps';
}

@media (min-width: 1024px) {
    .a2g-auth {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: 'brand form' 'steps form';
    }
}

.a2g-auth-brand { grid-area: brand; }
.a2g-auth-form { grid-area: form; }
.a2g-auth-steps { grid-area: steps; }

.a2g-auth-brand,
.a2g-auth-steps {
    background: #f1f8e3;
    color: #032a52;
    padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
    .a2g-auth-brand,
    .a2g-auth-steps {
        padding: 2.75rem 3rem;
    }
}

@media (min-width: 1024px) {
    .a2g-auth-brand { padding-bottom: 2rem; }
    .a2g-auth-steps { padding-top: 0; }
}

.a2g-auth-form .fi-simple-page {
    padding: 2.5rem 1.5rem 3rem;
}

@media (min-width: 640px) {
    .a2g-auth-form .fi-simple-page {
        padding: 3.5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .a2g-auth-form {
        position: sticky;
        top: 0;
        align-self: start;
    }
}

.a2g-auth-form .fi-simple-header {
    align-items: flex-start;
}

.a2g-auth-form .fi-simple-header-heading,
.a2g-auth-form .fi-simple-header-subheading {
    text-align: left;
}

.a2g-auth-form .fi-simple-header-heading {
    font-size: 1.75rem;
    color: #032a52;
}

.a2g-auth-form .fi-simple-header-subheading {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.a2g-auth-logo img {
    height: 2.25rem;
    width: auto;
}

.a2g-auth-title {
    margin-top: 2rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.625rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.a2g-auth-title {
    color: #032a52;
}

.a2g-auth-title em {
    font-style: normal;
    color: #4d7c0f;
}

.a2g-auth-lede {
    margin-top: 1rem;
    max-width: 31rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475467;
}

.a2g-auth-photo {
    position: relative;
    margin-top: 1.75rem;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 16 / 8;
}

.a2g-auth-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 45%;
}

.a2g-auth-photo figcaption {
    position: absolute;
    left: 0.875rem;
    bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.6rem 0.85rem;
    color: #032a52;
    font-size: 0.75rem;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgb(16 24 40 / 0.16);
}

.a2g-auth-photo figcaption strong {
    display: block;
    font-size: 0.8125rem;
}

.a2g-auth-photo-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #8dcc0b;
    box-shadow: 0 0 0 4px rgb(141 204 11 / 0.2);
}

.a2g-auth-steps {
    border-top: 1px solid rgb(77 124 15 / 0.15);
}

@media (min-width: 1024px) {
    .a2g-auth-steps { border-top: 0; }
}

.a2g-auth-steps-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4d7c0f;
}

.a2g-auth-steps ol {
    margin-top: 1.25rem;
    display: grid;
    gap: 1.1rem;
}

.a2g-auth-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.9rem;
}

.a2g-auth-steps li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 2rem;
    bottom: -0.95rem;
    width: 1px;
    background: rgb(77 124 15 / 0.25);
}

.a2g-auth-step-number {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid rgb(77 124 15 / 0.45);
    background: #fff;
    color: #4d7c0f;
    font-size: 0.8125rem;
    font-weight: 700;
}

.a2g-auth-steps li:last-child .a2g-auth-step-number {
    background: #8dcc0b;
    border-color: #8dcc0b;
    color: #032a52;
}

.a2g-auth-steps strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #032a52;
}

.a2g-auth-steps li p {
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #475467;
}

.a2g-auth-stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.a2g-auth-stats div {
    display: flex;
    flex-direction: column-reverse;
    border-radius: 0.875rem;
    background: #fff;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 1px 2px rgb(16 24 40 / 0.05);
}

.a2g-auth-stats dd {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #032a52;
}

.a2g-auth-stats dt {
    font-size: 0.75rem;
    color: #667085;
}

/* What happens after sign-up, under the form. */
.a2g-auth-next {
    display: flex;
    gap: 0.75rem;
    border-radius: 0.875rem;
    background: #edf3fa;
    padding: 0.9rem 1rem;
    color: #344054;
    font-size: 0.875rem;
    line-height: 1.55;
}

.a2g-auth-next svg {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    fill: none;
    stroke: #032a52;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.a2g-auth-next strong {
    color: #032a52;
}

/* Below desktop the brand panel shrinks to a header; the steps follow the form. */
@media (max-width: 1023px) {
    .a2g-auth-lede,
    .a2g-auth-photo { display: none; }
    .a2g-auth-title { margin-top: 1.25rem; }
}

@media (max-width: 380px) {
    .a2g-auth-stats div { padding: 0.7rem; }
    .a2g-auth-stats dd { font-size: 1.25rem; }
}

/* Brand buttons and choices: lime with navy text, as on the landing page. */
.fi-btn.fi-color-primary {
    background-color: #8dcc0b;
    color: #032a52;
    font-weight: 700;
}

.fi-btn.fi-color-primary:hover {
    background-color: #9bdc17;
    color: #032a52;
}

.fi-btn.fi-color-primary .fi-icon {
    color: #032a52;
}

input[type='radio']:checked,
input[type='checkbox']:checked {
    background-color: #032a52;
    border-color: #032a52;
}
