html { --c2-bg: #F5F8F4; --c2-surface: #FFFFFF; --c2-sunk: #EEF3EE; --c2-ink: #0E2B24; --c2-text: #16211C; --c2-muted: #5A6A63; --c2-line: rgba(14, 43, 36, .10); --c2-line-strong: rgba(14, 43, 36, .18);
  --c2-pri: #123B33; --c2-pri2: #1F5A4C; --c2-lime: #D8EC9F; --c2-tint: #E8F3CF; --c2-tint-ink: #2F5A1F;
  --c2-s1: 0 1px 2px rgba(14, 43, 36, .06), 0 2px 6px rgba(14, 43, 36, .04);
  --c2-s2: 0 1px 2px rgba(14, 43, 36, .05), 0 10px 24px -10px rgba(14, 43, 36, .16);
  --c2-s3: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(14, 43, 36, .05), 0 34px 60px -24px rgba(14, 43, 36, .30);
  --c2-btn: linear-gradient(180deg, #1B4B40 0%, #123B33 100%); --c2-btn-ink: #FFFFFF; --c2-btn-sh: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 18px -8px rgba(18, 59, 51, .65);
  --c2-mesh: radial-gradient(760px 420px at 8% -6%, rgba(216, 236, 159, .65), rgba(216, 236, 159, 0) 70%), radial-gradient(720px 460px at 100% 4%, rgba(46, 139, 110, .16), rgba(46, 139, 110, 0) 70%);
  --c2-font: "Rubik", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[data-theme="dark"] { --c2-bg: #0A1F1A; --c2-surface: #10302A; --c2-sunk: #0C2620; --c2-ink: #F2F0E6; --c2-text: #F2F0E6; --c2-muted: #A9BFB4; --c2-line: rgba(216, 236, 159, .13); --c2-line-strong: rgba(216, 236, 159, .26);
  --c2-pri: #D8EC9F; --c2-pri2: #9FD0B5; --c2-tint: rgba(216, 236, 159, .14); --c2-tint-ink: #D8EC9F;
  --c2-s1: 0 1px 2px rgba(0, 0, 0, .35); --c2-s2: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 26px -10px rgba(0, 0, 0, .55);
  --c2-s3: 0 1px 0 rgba(216, 236, 159, .12) inset, 0 40px 70px -28px rgba(0, 0, 0, .75);
  --c2-btn: linear-gradient(180deg, #E2F3B0 0%, #CFE58E 100%); --c2-btn-ink: #0C2620; --c2-btn-sh: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 22px -8px rgba(216, 236, 159, .45);
  --c2-mesh: radial-gradient(760px 420px at 8% -6%, rgba(216, 236, 159, .13), rgba(216, 236, 159, 0) 70%), radial-gradient(720px 460px at 100% 4%, rgba(46, 139, 110, .30), rgba(46, 139, 110, 0) 70%); }
@media (min-width: 900px) {
/* ===== OFinder sign-in landing, Calm Premium. Scoped to #auth-view; no other page is affected. */
body:has(#auth-view:not([hidden])) { background: var(--c2-mesh), var(--c2-bg) !important; background-repeat: no-repeat, no-repeat; background-size: 100% 760px, 100% 760px, auto; }
html #auth-view.auth-layout { background: transparent !important; position: relative; isolation: isolate; overflow: clip; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; max-width: 1240px; margin: 0 auto; padding: 36px 28px 56px; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; align-items: center; }
html #auth-view .auth-intro { background: transparent !important; color: var(--c2-text) !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0; overflow: visible; }
html #auth-view .auth-hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 52px; }
html #auth-view .brand-large { color: var(--c2-ink) !important; font: 600 21px/1 var(--c2-font); }
html #auth-view .language-select, html #auth-view .theme-toggle { background: var(--c2-surface) !important; color: var(--c2-text) !important; border: 1px solid var(--c2-line-strong) !important; border-radius: 12px !important; box-shadow: var(--c2-s1); }
html #auth-view .auth-intro .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px 7px 10px; background: var(--c2-tint) !important; color: var(--c2-tint-ink) !important; border: 1px solid var(--c2-line); border-radius: 999px; font: 500 14px/1.2 var(--c2-font); letter-spacing: 0; text-transform: none; }
html #auth-view .auth-intro .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3FA06F; box-shadow: 0 0 0 4px rgba(63, 160, 111, .18); }
html #auth-view .auth-intro h1 { margin: 0 0 22px; font: 600 clamp(44px, 5.4vw, 76px)/1.04 var(--c2-font); letter-spacing: -0.03em; color: var(--c2-ink) !important; max-width: 11em; }
html[lang="ar"] #auth-view .auth-intro h1 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
html #auth-view .auth-lead { max-width: 31em; font: 400 18px/1.7 var(--c2-font); color: var(--c2-muted) !important; margin: 0 0 24px; }
html #auth-view .auth-points { display: grid; gap: 10px; margin: 0 0 28px; }
html #auth-view .auth-points > div { display: flex; align-items: center; gap: 12px; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--c2-text) !important; font: 500 16px/1.4 var(--c2-font); }
html #auth-view .point-check { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--c2-tint) !important; color: var(--c2-tint-ink) !important; border: 1px solid var(--c2-line); }
html #auth-view .point-check svg { width: 13px; height: 13px; }
html #auth-view .auth-browse-top { display: inline-flex; align-items: center; gap: 10px; width: auto; padding: 13px 20px; border-radius: 14px; background: var(--c2-surface) !important; color: var(--c2-text) !important; border: 1px solid var(--c2-line-strong) !important; box-shadow: var(--c2-s1); font: 600 15px/1 var(--c2-font); transition: transform .18s ease, box-shadow .18s ease; }
html #auth-view .auth-browse-top:hover { transform: translateY(-2px); box-shadow: var(--c2-s2); }
/* preview: one elevated sheet with a second sheet peeking out underneath */
html #auth-view .float-head { display: flex; align-items: center; gap: 8px; padding: 2px 0 12px; font: 600 14px/1 var(--c2-font); color: var(--c2-muted) !important; }
html #auth-view .float-card strong, html #auth-view .float-text strong { font: 600 16px/1.3 var(--c2-font); color: var(--c2-text) !important; }
html #auth-view .float-meta { display: block; font: 400 14px/1.3 var(--c2-font); color: var(--c2-muted) !important; }
html #auth-view .float-chip { padding: 6px 11px; background: var(--c2-tint) !important; color: var(--c2-tint-ink) !important; border: 1px solid var(--c2-line); border-radius: 999px; font: 600 13px/1 var(--c2-font); }
html #auth-view .float-bell { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c2-tint) !important; color: var(--c2-tint-ink) !important; }
html #auth-view .float-foot { padding-top: 12px; border-top: 1px solid var(--c2-line); font: 500 13px/1.4 var(--c2-font); color: var(--c2-muted) !important; }
/* form card */
html #auth-view .auth-card { display: block !important; min-height: 0 !important; align-self: center; position: relative; inset: auto; padding: 32px !important; background: var(--c2-surface) !important; color: var(--c2-text) !important; border: 1px solid var(--c2-line) !important; border-radius: 28px !important; box-shadow: var(--c2-s3) !important; }
html #auth-view .auth-card > * + * { margin-top: 12px; }
html #auth-view .auth-private { padding: 5px 11px; background: var(--c2-tint); color: var(--c2-tint-ink); border: 1px solid var(--c2-line); border-radius: 999px; font: 600 13px/1 var(--c2-font); }
html #auth-view .auth-partner-link { color: var(--c2-muted) !important; font-weight: 500; text-decoration-color: var(--c2-line-strong); }
html #auth-view .auth-card h2 { margin-top: 16px; font: 600 30px/1.15 var(--c2-font); letter-spacing: -0.02em; color: var(--c2-ink); }
html[lang="ar"] #auth-view .auth-card h2 { letter-spacing: 0; }
html #auth-view .auth-card .muted { color: var(--c2-muted) !important; font-size: 15px; }
html #auth-view .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--c2-sunk) !important; border: 1px solid var(--c2-line); border-radius: 14px; box-shadow: inset 0 1px 2px rgba(14, 43, 36, .06); }
html #auth-view .auth-tabs::before { display: none !important; }
html #auth-view .auth-tab { padding: 11px; border: 0; border-radius: 10px; background: transparent !important; color: var(--c2-muted) !important; font: 600 15px/1 var(--c2-font); box-shadow: none !important; transition: background .18s ease, color .18s ease; }
html #auth-view .auth-tab[aria-selected="true"] { background: var(--c2-surface) !important; color: var(--c2-ink) !important; box-shadow: var(--c2-s1) !important; }
html[data-theme="dark"] #auth-view .auth-tab[aria-selected="true"] { background: #17463C !important; }
html #auth-view .field > span:first-child, html #auth-view .field span { font: 500 14px/1.2 var(--c2-font); color: var(--c2-text); }
html #auth-view .field input { padding: 14px 16px; background: var(--c2-sunk) !important; color: var(--c2-text) !important; border: 1px solid var(--c2-line) !important; border-radius: 14px !important; font: 400 16px/1.2 var(--c2-font); box-shadow: inset 0 1px 2px rgba(14, 43, 36, .05) !important; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
html #auth-view .field input:focus { outline: 0; background: var(--c2-surface) !important; border-color: var(--c2-pri2) !important; box-shadow: 0 0 0 4px rgba(31, 90, 76, .16) !important; }
html #auth-view #auth-submit { padding: 15px 22px; background: var(--c2-btn) !important; color: var(--c2-btn-ink) !important; border: 0 !important; border-radius: 14px !important; font: 600 16px/1 var(--c2-font); box-shadow: var(--c2-btn-sh) !important; transition: transform .18s ease, box-shadow .18s ease; }
html #auth-view .auth-card .button-secondary, html #auth-view .auth-card .app-promo { background: var(--c2-surface) !important; color: var(--c2-text) !important; border: 1px solid var(--c2-line-strong) !important; border-radius: 14px !important; box-shadow: var(--c2-s1); font-weight: 600; }

/* ---- page: a fixed backdrop behind the landing only (no body rule, so other pages are untouched) */
html #auth-view { --font-ui: var(--c2-font); }
html #auth-view::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--c2-mesh), var(--c2-bg); }
html[data-theme="dark"] #auth-view::before { background: var(--c2-mesh), linear-gradient(180deg, #081914 0%, #0A1F1A 60%); }
html[data-theme="dark"] #auth-view .auth-intro { background: transparent !important; }
html[data-theme="dark"] #auth-view .auth-card { background: #10302A !important; }
html #auth-view .auth-cursor { display: none !important; }

/* ---- depth: aurora blobs behind the intro, soft and slow; pointer parallax on the sheets (desktop, vars come from auth-motion.js) */
html #auth-view .auth-aurora { position: absolute; inset: -60px -80px; z-index: 0; pointer-events: none; display: block; }
html #auth-view .auth-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(216, 236, 159, .55), rgba(216, 236, 159, 0) 65%); }
html #auth-view .auth-aurora i:nth-child(2) { background: radial-gradient(circle, rgba(46, 139, 110, .20), rgba(46, 139, 110, 0) 65%); }
html #auth-view .auth-aurora i:nth-child(3) { background: radial-gradient(circle, rgba(111, 179, 106, .16), rgba(111, 179, 106, 0) 62%); }
html[data-theme="dark"] #auth-view .auth-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(216, 236, 159, .07), rgba(216, 236, 159, 0) 65%); }
html[data-theme="dark"] #auth-view .auth-aurora i:nth-child(2) { background: radial-gradient(circle, rgba(46, 139, 110, .16), rgba(46, 139, 110, 0) 65%); }
html[data-theme="dark"] #auth-view .auth-aurora i:nth-child(3) { background: radial-gradient(circle, rgba(111, 179, 106, .08), rgba(111, 179, 106, 0) 62%); }
html #auth-view .auth-float { position: relative !important; inset: auto !important; display: grid; gap: 0; margin-top: 40px; max-width: 500px; padding: 18px 20px !important; background: var(--c2-surface) !important; border: 1px solid var(--c2-line) !important; border-radius: 24px !important; box-shadow: var(--c2-s2) !important; rotate: none; transform: none; isolation: isolate; translate: calc(var(--px, 0) * -7px) calc(var(--py, 0) * -5px); transition: translate .3s ease-out; perspective: none; height: auto; }
html #auth-view .auth-float::before { content: ""; position: absolute; z-index: -1; inset: 10px -10px -12px 10px; border-radius: 24px; background: var(--c2-sunk); border: 1px solid var(--c2-line); translate: calc(var(--px, 0) * 9px) calc(var(--py, 0) * 7px); transition: translate .3s ease-out; }
html #auth-view .float-card, html #auth-view .float-card.float-a, html #auth-view .float-card.float-b, html #auth-view .float-card.float-c { display: flex; align-items: center; gap: 12px; padding: 14px 2px; background: transparent !important; border: 0 !important; border-top: 1px solid var(--c2-line) !important; border-radius: 0 !important; box-shadow: none !important; color: var(--c2-text) !important; position: relative; inset: auto; margin: 0 !important; width: auto; transform: none; translate: none; transition: background-color .35s ease; }
html #auth-view .float-card.is-hot { background: var(--c2-tint) !important; }
html #auth-view .float-dot { width: 8px; height: 8px; border-radius: 50%; background: #3FA06F; box-shadow: none; animation: c2-live 2.4s ease-in-out infinite; }
@keyframes c2-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- entry sequence: the intro column and the card rise in one after another (transform + opacity) */
@keyframes c2-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes c2-card-in { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.97); } to { opacity: 1; transform: none; } }
html #auth-view .auth-hero-top { animation: c2-rise .7s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) 0s both; }
html #auth-view .auth-lead { animation: c2-rise .7s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) .75s both; }
html #auth-view .auth-points > div:nth-child(1) { animation: c2-rise .6s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) .9s both; }
html #auth-view .auth-points > div:nth-child(2) { animation: c2-rise .6s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) 1.0s both; }
html #auth-view .auth-browse-top { animation: c2-rise .6s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) 1.1s both; }
html #auth-view .auth-card { animation: c2-card-in .85s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) .25s both; }
html #auth-view .auth-card.is-shake { animation: auth-shake .5s cubic-bezier(.36, .07, .19, .97); }

/* ---- "starts here": green gradient text with a light that sweeps across it (background-clip, so Arabic letters stay joined) */
html #auth-view .auth-intro h1 .auth-line-accent { background-image: linear-gradient(100deg, transparent 38%, rgba(190, 232, 140, .95) 50%, transparent 62%), linear-gradient(95deg, #123B33 0%, #2E8B6E 60%, #6FB36A 100%) !important; background-size: 300% 100%, 100% 100% !important; background-position: 100% 0, 0 0 !important; background-repeat: no-repeat !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; animation: line-up .9s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) .5s both, accent-sweep 7s ease-in-out 1.8s infinite !important; }
html[dir="rtl"] #auth-view .auth-intro h1 .auth-line-accent { animation-name: line-up, accent-sweep-rtl !important; }
html[data-theme="dark"] #auth-view .auth-intro h1 .auth-line-accent { background-image: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%), linear-gradient(95deg, #D8EC9F 0%, #9FD0B5 70%, #7CC4A4 100%) !important; color: transparent !important; -webkit-text-fill-color: transparent !important; }

/* ---- glint: a light line travels along the card's top edge; the button carries a soft shine */
html #auth-view .auth-card::after { display: block !important; background: linear-gradient(90deg, transparent, #2E8B6E 35%, #BFE88A 50%, #2E8B6E 65%, transparent); }
html[data-theme="dark"] #auth-view .auth-card::after { background: linear-gradient(90deg, transparent, #9FD0B5 35%, #F2FBD2 50%, #9FD0B5 65%, transparent); }
html #auth-view .auth-card::before { background: radial-gradient(circle, rgba(63, 160, 111, .14), rgba(63, 160, 111, 0) 68%); }
html[data-theme="dark"] #auth-view .auth-card::before { background: radial-gradient(circle, rgba(216, 236, 159, .10), rgba(216, 236, 159, 0) 68%); }
html #auth-view #auth-submit::after { display: block !important; }
html #auth-view .auth-card .auth-partner-link, html #auth-view .auth-card .register-terms .button-text, html #auth-view .auth-card .auth-footnote a { color: var(--c2-pri2) !important; }
html[data-theme="dark"] #auth-view .auth-card .auth-partner-link, html[data-theme="dark"] #auth-view .auth-card .register-terms .button-text, html[data-theme="dark"] #auth-view .auth-card .auth-footnote a { color: #D8EC9F !important; }

/* ---- glass in dark */
@supports (backdrop-filter: blur(1px)) { html[data-theme="dark"] #auth-view .auth-float { background: rgba(16, 48, 42, .6) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }
html #auth-view .auth-intro h1 .auth-line:not(.auth-line-accent) { color: var(--c2-ink) !important; -webkit-text-fill-color: var(--c2-ink) !important; }
html #auth-view .auth-intro .eyebrow { color: var(--c2-tint-ink) !important; }
html[data-theme="dark"] #auth-view .auth-intro .eyebrow { color: #D8EC9F !important; }

/* ---- ambient layers kept and restyled for concept 2 */
html #auth-view .auth-intro::before, html #auth-view .auth-intro::after { display: none !important; }
html #auth-view .auth-spotlight { display: block; background: radial-gradient(circle 340px at var(--mx, 72%) var(--my, 26%), rgba(111, 179, 106, .16), rgba(111, 179, 106, 0) 70%); }
html[data-theme="dark"] #auth-view .auth-spotlight { background: radial-gradient(circle 340px at var(--mx, 72%) var(--my, 26%), rgba(216, 236, 159, .09), rgba(216, 236, 159, 0) 70%); }
html #auth-view .auth-sparks { display: block; }
html #auth-view .auth-sparks i { background: #3FA06F; box-shadow: 0 0 10px 3px rgba(63, 160, 111, .35); }
html[data-theme="dark"] #auth-view .auth-sparks i { background: #D8EC9F; box-shadow: 0 0 10px 3px rgba(216, 236, 159, .35); }
html #auth-view .auth-float .float-toast { display: flex; color: var(--c2-text); background: var(--c2-surface); border: 1px solid var(--c2-line); box-shadow: var(--c2-s2); font-family: var(--c2-font); }
html #auth-view .float-toast-ico { background: #3FA06F; }
/* glint: a brighter, slightly thicker travelling line so it reads clearly */
html #auth-view .auth-card::after { height: 3px; }

/* ---- preview sheet: the rows are all visible; one at a time lifts toward the viewer with a soft glow (about 2.6s each), then settles.
   Loops in order: fellowship, reminder, scholarship. Transform + opacity only (the glow is a pseudo-element fading in). */
@keyframes c2-row-pop { 0% { transform: none; } 5%, 28% { transform: scale(1.03); } 34%, 100% { transform: none; } }
@keyframes c2-row-glow { 0% { opacity: 0; } 5%, 28% { opacity: 1; } 34%, 100% { opacity: 0; } }
html #auth-view .float-card::before { content: ""; position: absolute; z-index: -1; inset: 2px -8px; border-radius: 14px; pointer-events: none; opacity: 0; background: var(--c2-tint); box-shadow: 0 10px 26px -10px rgba(63, 160, 111, .55), 0 0 0 1px var(--c2-line); }
html[data-theme="dark"] #auth-view .float-card::before { box-shadow: 0 10px 28px -10px rgba(216, 236, 159, .35), 0 0 0 1px var(--c2-line-strong); }
html #auth-view .float-card.is-hot { background: transparent !important; }
html:not(.anim-stuck) #auth-view .auth-float .float-card.float-a, html:not(.anim-stuck) #auth-view .auth-float .float-card.float-b, html:not(.anim-stuck) #auth-view .auth-float .float-card.float-c { animation: c2-row-pop 7.8s ease-in-out infinite !important; }
html:not(.anim-stuck) #auth-view .auth-float .float-card::before { animation: c2-row-glow 7.8s ease-in-out infinite; }
html:not(.anim-stuck) #auth-view .auth-float .float-card.float-a, html:not(.anim-stuck) #auth-view .auth-float .float-card.float-a::before { animation-delay: 2s !important; }
html:not(.anim-stuck) #auth-view .auth-float .float-card.float-b, html:not(.anim-stuck) #auth-view .auth-float .float-card.float-b::before { animation-delay: 4.6s !important; }
html:not(.anim-stuck) #auth-view .auth-float .float-card.float-c, html:not(.anim-stuck) #auth-view .auth-float .float-card.float-c::before { animation-delay: 7.2s !important; }

/* ---- "Continue with Google": the real link and handler are untouched; only the look follows concept 2 */
html #auth-view .google-signin:not([hidden]) { display: grid; gap: 12px; }
html #auth-view .google-button { padding: 14px 18px; background: var(--c2-surface) !important; color: var(--c2-text) !important; border: 1px solid var(--c2-line-strong) !important; border-radius: 14px !important; box-shadow: var(--c2-s1); font: 600 15px/1 var(--c2-font); transition: transform .18s ease, box-shadow .18s ease; }
html #auth-view .google-button:hover { transform: translateY(-2px); box-shadow: var(--c2-s2); background: var(--c2-surface) !important; }
html[data-theme="dark"] #auth-view .google-button { background: rgba(255, 255, 255, .05) !important; color: #F2F0E6 !important; }
html #auth-view .auth-divider { color: var(--c2-muted); font: 500 13px/1 var(--c2-font); }
html #auth-view .auth-divider::before, html #auth-view .auth-divider::after { background: var(--c2-line); }
}
