/* ============================================================================================
   b.world onboarding (Areas/Identity/Pages/Account/Onboarding.cshtml)

   Plain CSS, not SCSS: site.css is only regenerated by a Visual Studio custom tool, so a page
   sheet that ships as written is the safer home (marketing.css is the precedent).

   Two parts:
     * The split card. _Onboarding.cshtml adds .has-aside to #container when the page defines an
       "Aside" section; the aside carries the marketing panel (headline rotator, feature list,
       IRIS+/SDG strip, testimonials), styled after marketing.css but scoped here.
     * The form column: single-column fields, full-width "Continue with" SSO buttons.

   site.css binds the platform button look to the `button` ELEMENT with !important (height,
   padding, grayLight background, no border), so the SSO buttons restate their look with
   !important under the #container id scope.
   ============================================================================================ */

/* ------------------------------------------------------------------------------- the card */
#account_setup #container.has-aside {
    --ob-ink: #17302f;
    --ob-ink-soft: #3f5554;
    --ob-ease: cubic-bezier(.2, .8, .2, 1);
    max-width: 72rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 40px 80px -36px rgba(16, 45, 48, .38), 0 16px 32px -20px rgba(16, 45, 48, .18);
}
#account_setup #container.has-aside > main { margin: 0; min-height: 640px; }

#container.has-aside .ob-main {
    flex: 0 0 46%; max-width: 46%;
    padding: 2rem 3.5rem 2.5rem !important;
}
#container.has-aside .ob-main h1.logo { margin-top: 1rem !important; margin-bottom: 1.25rem !important; }
#container.has-aside .ob-main h1.logo img { max-width: 132px; }
#container.has-aside .ob-main #pageTitle { margin-bottom: .35rem; }

/* ------------------------------------------------------------------------------- the aside */
#container.has-aside .ob-aside {
    order: -1;
    flex: 0 0 54%; max-width: 54%;
    position: relative; overflow: hidden;
    padding: 4rem 3.5rem 3rem;
    text-align: left;
    color: var(--ob-ink-soft);
    background: linear-gradient(160deg, #fff 0%, #fbfaf8 45%, var(--grayLighter) 100%);
    border-right: 1px solid rgba(16, 45, 48, .06);
}
#container.has-aside .ob-aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }

/* Drifting colour fields, as in the marketing hero. */
#container.has-aside .ob-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#container.has-aside .ob-glow span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .6; }
#container.has-aside .ob-glow span:nth-child(1) { width: 26rem; height: 26rem; left: -9rem; top: -10rem; background: var(--accentLighter); animation: ob-drift-a 18s ease-in-out infinite alternate; }
#container.has-aside .ob-glow span:nth-child(2) { width: 18rem; height: 18rem; right: -7rem; top: 10rem; background: #d8f3f5; animation: ob-drift-b 22s ease-in-out infinite alternate; }
#container.has-aside .ob-glow span:nth-child(3) { width: 20rem; height: 20rem; left: 6rem; bottom: -9rem; background: var(--secondaryLight); opacity: .4; animation: ob-drift-a 26s ease-in-out infinite alternate-reverse; }

@keyframes ob-drift-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(3rem, 2rem) scale(1.15); } }
@keyframes ob-drift-b { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-3rem, 3rem) scale(.95); } }
@keyframes ob-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ob-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

#container.has-aside .ob-in { animation: ob-rise .9s var(--ob-ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }

#container.has-aside .ob-kicker {
    margin: 0 0 18px;
    font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4;
    color: var(--accentText); font-variation-settings: 'wght' 700;
}

#container.has-aside .ob-headline {
    margin: 0;
    font-family: "ff-tisa-web-pro", Georgia, serif;
    font-size: clamp(2.1rem, 3.3vw, 3.1rem);
    line-height: 1.08; letter-spacing: -0.02em;
    color: var(--ob-ink);
    font-variation-settings: normal;
}
#container.has-aside .ob-line { display: block; }
#container.has-aside .ob-nowrap { white-space: nowrap; }
#container.has-aside .ob-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Same mechanics as .mk-rotator: words share one grid cell; the box is sized to the current word
   by the page script (width transitions) and clip-path hides the word rolling out. */
#container.has-aside .ob-rotator {
    display: inline-grid; justify-items: start; vertical-align: bottom;
    padding: .12em .04em .3em; margin: -.12em 0 -.3em;
    clip-path: inset(0 -0.04em);
    transition: width .45s var(--ob-ease);
}
#container.has-aside .ob-rotator > span {
    grid-area: 1 / 1; white-space: nowrap;
    padding: .08em 0 .28em; margin: -.08em 0 -.28em; /* keeps descenders inside background-clip */
    background: linear-gradient(-20deg, var(--accentDark), var(--accent) 40%, var(--accentLight));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: 0; transform: translateY(130%);
    transition: transform .75s var(--ob-ease), opacity .45s var(--ob-ease);
}
#container.has-aside .ob-rotator > span.is-on { opacity: 1; transform: none; transition-delay: .2s; }
#container.has-aside .ob-rotator > span.is-out { opacity: 0; transform: translateY(-118%); transition: transform .5s cubic-bezier(.5, 0, .75, 0), opacity .22s ease-in; transition-delay: 0s; }
#container.has-aside .ob-rotator--lead > span {
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    color: var(--ob-ink);
}

/* "b." with the logo's circle drawn round it */
#container.has-aside .ob-b { position: relative; display: inline-block; color: var(--accent); }
#container.has-aside .ob-b svg {
    position: absolute; left: -24%; top: -8%; width: 150%; height: 120%;
    overflow: visible; pointer-events: none;
}
#container.has-aside .ob-b path {
    fill: none; stroke: var(--accentLight); stroke-width: 3.2; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: ob-draw 1.3s var(--ob-ease) 1s both;
}

#container.has-aside .ob-pitch {
    margin: 22px 0 0; max-width: 32rem;
    font-size: 1.12rem; line-height: 1.6; color: var(--ob-ink-soft);
}

#container.has-aside .ob-features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
#container.has-aside .ob-features li { display: flex; align-items: center; gap: 14px; font-size: 1rem; line-height: 1.4; color: var(--ob-ink); }
#container.has-aside .ob-features i[class^="ph-"] {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.15rem; line-height: 1;
    color: var(--accentDark); background: rgba(255, 255, 255, .85);
    box-shadow: 0 0 0 1px rgba(52, 143, 150, .18), 0 6px 14px -10px rgba(16, 45, 48, .5);
}

#container.has-aside .ob-trust {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin-top: 26px; font-size: 13px; color: var(--textLight);
}
#container.has-aside .ob-trust img { width: auto; height: 24px; }
#container.has-aside .ob-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--grayDarker); }

/* One testimonial at a time; the page script cycles is-on. All three share the grid cell, so the
   card is as tall as the longest quote and nothing below it jumps. */
#container.has-aside .ob-quotes { margin-top: auto; padding-top: 36px; }
#container.has-aside .ob-quotes-label {
    margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--textLight); font-variation-settings: 'wght' 700;
}
#container.has-aside .ob-quote-stack { display: grid; }
#container.has-aside .ob-quote {
    grid-area: 1 / 1; position: relative; margin: 0;
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 45, 48, .07);
    border-radius: 20px; padding: 40px 26px 22px;
    opacity: 0; transform: translateY(10px); visibility: hidden;
    transition: opacity .6s var(--ob-ease), transform .6s var(--ob-ease), visibility 0s linear .6s;
}
#container.has-aside .ob-quote.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
#container.has-aside .ob-quote::before {
    content: "\201C"; position: absolute; top: 2px; left: 20px;
    font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 64px; line-height: 1; color: var(--accentLight);
}
#container.has-aside .ob-quote blockquote { margin: 0 0 18px; }
#container.has-aside .ob-quote blockquote p { margin: 0; font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 15.5px; line-height: 1.55; color: var(--ob-ink); }
#container.has-aside .ob-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 12.5px; line-height: 1.35; color: var(--textLight); }
#container.has-aside .ob-quote figcaption strong { display: block; color: var(--ob-ink); font-size: 14px; font-variation-settings: 'wght' 700; font-weight: normal; }
#container.has-aside .ob-quote-avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--accentLight);
}
#container.has-aside .ob-quote-dots { display: flex; gap: 8px; margin-top: 14px; }
#container.has-aside .ob-quote-dots button {
    width: 8px; height: 8px; min-width: 0; padding: 0 !important;
    border-radius: 50% !important; background-color: var(--grayDarker) !important;
    transition: width .3s var(--ob-ease), background-color .3s;
}
#container.has-aside .ob-quote-dots button.is-on { width: 22px; border-radius: 999px !important; background-color: var(--accent) !important; }

/* ------------------------------------------------------------------------------- the form */
#container.has-aside .ob-lede { margin: 0 0 1.5rem; color: var(--textLight); font-size: 1.02rem; }

#container.has-aside .ob-form { text-align: left; }
#container.has-aside .ob-field { display: block; margin: 0 0 14px; }
#container.has-aside .ob-field > span,
#container.has-aside .ob-field > label > span { display: block; margin: 0 0 6px; font-size: 13px; color: var(--ob-ink-soft); font-variation-settings: 'wght' 600; }
#container.has-aside .ob-field > label { display: block; margin: 0; }
#container.has-aside .ob-form input.e-input,
#container.has-aside .ob-form select.e-input { width: 100%; height: 44px; }
#container.has-aside .ob-form p { margin-bottom: 14px; }
#container.has-aside .ob-form input.e-input[readonly] { background-color: var(--grayLighter); color: var(--ob-ink-soft); }

#container.has-aside .ob-password { position: relative; display: block; }
#container.has-aside .ob-password input.e-input { padding-right: 44px; }
#container.has-aside .ob-password .ob-peek {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px !important; min-width: 0;
    padding: 0 !important; border-radius: 50% !important;
    background-color: transparent !important; color: var(--textLight) !important;
    display: inline-flex; align-items: center; justify-content: center;
}
#container.has-aside .ob-password .ob-peek:hover { background-color: var(--grayLight) !important; color: var(--text) !important; }
#container.has-aside .ob-password .ob-peek:active { transform: translateY(-50%) !important; }
#container.has-aside .ob-password .ob-peek i { font-size: 1.15rem; line-height: 1; }

#container.has-aside .ob-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
#container.has-aside .ob-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }

#container.has-aside .ob-actions { margin: 1.25rem 0 0; }
#container.has-aside .ob-actions > .e-btn,
#container.has-aside .ob-actions > button { width: 100%; }
#container.has-aside .ob-actions > * + * { margin-top: .6rem; }
#container.has-aside .ob-actions--row { display: flex; gap: .75rem; }
#container.has-aside .ob-actions--row > * { flex: 1 1 0; width: auto; }
#container.has-aside .ob-actions--row > * + * { margin-top: 0; }

#container.has-aside .ob-alt { margin: 1.25rem 0 0; font-size: 14px; }

/* "Continue with Google / Microsoft": the provider convention is a full-width white button with
   the provider's own mark at the left and the label centred. */
#container.has-aside .ob-sso { display: grid; gap: 10px; margin: 0; }
#container.has-aside .ob-sso button.ob-sso-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; height: 46px;
    padding: 0 1.25rem !important;
    border: 1px solid var(--gray) !important;
    border-radius: var(--brbutton) !important;
    background-color: #fff !important;
    color: var(--ob-ink) !important;
    font-size: 14.5px !important; font-variation-settings: 'wght' 600;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#container.has-aside .ob-sso button.ob-sso-btn:hover {
    background-color: var(--grayLighter) !important;
    border-color: var(--grayDarker) !important;
    box-shadow: 0 6px 16px -12px rgba(16, 45, 48, .55);
}
#container.has-aside .ob-sso button.ob-sso-btn:focus-visible { outline: 3px solid var(--accentLight); outline-offset: 2px; }
#container.has-aside .ob-sso .ob-sso-logo { flex: none; width: 20px; height: 20px; display: block; object-fit: contain; }
/* The Microsoft and Facebook marks sit inside a 20% margin of their viewBox; the Google mark does
   not. Enlarge the padded ones so the three read at the same size. */
#container.has-aside #onboarding_sso_microsoft .ob-sso-logo,
#container.has-aside #onboarding_sso_facebook .ob-sso-logo { width: 28px; height: 28px; margin: -4px; }

#container.has-aside .ob-separator {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.25rem 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--textLight);
}
#container.has-aside .ob-separator::before,
#container.has-aside .ob-separator::after { content: ''; flex: 1; border-bottom: 1px solid var(--gray); }

/* Create / join switch at the top of the team pane. */
#container.has-aside .ob-seg {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    margin: 1rem 0 1.25rem; padding: 4px;
    background: var(--grayLight); border-radius: 999px;
}
#container.has-aside .ob-seg button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 .75rem !important;
    border-radius: 999px !important;
    background-color: transparent !important; color: var(--ob-ink-soft) !important;
    font-size: 14px !important; font-variation-settings: 'wght' 600;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
#container.has-aside .ob-seg button:hover { background-color: rgba(255, 255, 255, .6) !important; }
#container.has-aside .ob-seg button.is-on {
    background-color: #fff !important; color: var(--accentDark) !important;
    box-shadow: 0 4px 12px -8px rgba(16, 45, 48, .55);
}
#container.has-aside .ob-seg button:active { transform: none !important; }
#container.has-aside .ob-seg i[class^="ph-"] { font-size: 1.1rem; line-height: 1; }

#container.has-aside .ob-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--textLight); }
#container.has-aside .ob-hint i[class^="ph-"] { font-size: 1rem; line-height: 1; vertical-align: -0.15em; }

#container.has-aside .ob-note {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 16px 0 0; padding: 12px 14px;
    font-size: 13px; line-height: 1.5; color: var(--ob-ink-soft);
    background: var(--accentLighter); border-radius: 14px;
}
#container.has-aside .ob-note i[class^="ph-"] { flex: none; font-size: 1.15rem; line-height: 1.3; color: var(--accentDark); }

/* The team being joined, named before anything is sent. */
#container.has-aside .ob-team-card {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 1.1rem; padding: 14px 16px;
    text-align: left;
    background: #fff; border: 1px solid var(--gray); border-radius: 16px;
    box-shadow: 0 10px 24px -20px rgba(16, 45, 48, .6);
}
#container.has-aside .ob-team-mark {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 22px; color: #fff;
    background: linear-gradient(-20deg, var(--accentDark), var(--accent) 55%, var(--accentLight));
}
#container.has-aside .ob-team-text { min-width: 0; display: flex; flex-direction: column; }
#container.has-aside .ob-team-text strong { font-size: 16px; color: var(--ob-ink); font-variation-settings: 'wght' 700; font-weight: normal; overflow-wrap: anywhere; }
#container.has-aside .ob-team-text small { font-size: 12.5px; color: var(--textLight); overflow-wrap: anywhere; }

#container.has-aside .ob-actions .e-btn i[class^="ph-"] { font-size: 1.05rem; line-height: 1; vertical-align: -0.15em; margin-right: 4px; }

/* Six one-digit boxes on the verify pane. */
.otp-input {
    width: 46px; height: 54px;
    text-align: center; font-size: 22px; font-variation-settings: 'wght' 600;
    color: var(--text); background: #fff;
    border: 1px solid var(--gray); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.otp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentLighter); outline: none; }

/* ------------------------------------------------------------------------------- narrow */
@media only screen and (max-width: 991px) {
    #account_setup #container.has-aside { margin-top: 0 !important; margin-bottom: 0 !important; box-shadow: none; }
    #container.has-aside .ob-main,
    #container.has-aside .ob-aside { flex: 0 0 100%; max-width: 100%; }
    #container.has-aside .ob-aside { order: 0; border-right: 0; border-top: 1px solid rgba(16, 45, 48, .06); padding: 2.5rem 1.5rem; }
    #container.has-aside .ob-main { padding: 1.5rem 1.5rem 2rem !important; }
    #container.has-aside .ob-form-wrap { max-width: 28rem; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    #container.has-aside .ob-glow span,
    #container.has-aside .ob-in,
    #container.has-aside .ob-b path { animation: none !important; }
    #container.has-aside .ob-b path { stroke-dashoffset: 0; }
    #container.has-aside .ob-rotator,
    #container.has-aside .ob-rotator > span,
    #container.has-aside .ob-quote { transition: none !important; }
}
