@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --reg-bg: #070b10;
    --reg-panel: #0c1219;
    --reg-card: rgba(9, 14, 20, .90);
    --reg-gold: #f2b95f;
    --reg-gold-light: #ffd58b;
    --reg-gold-dark: #bf8135;
    --reg-text: #f6f7f9;
    --reg-muted: #a8b5c4;
    --reg-border: rgba(160, 180, 198, .28);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--reg-bg); }

body.gather-register-page {
    min-height: 100vh;
    margin: 0;
    color: var(--reg-text);
    background:
        radial-gradient(circle at 78% 17%, rgba(201, 136, 54, .13), transparent 28rem),
        linear-gradient(135deg, #080c11, #0b1118 58%, #080b10);
    font-family: 'DM Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.gather-register-page a { color: inherit; text-decoration: none; }
.gather-register-page button,
.gather-register-page input { font: inherit; }

.register-shell { width: 100%; min-height: 100vh; overflow: hidden; }

.topbar {
    width: min(1440px, 100%);
    min-height: 92px;
    margin: 0 auto;
    padding: 17px clamp(22px, 5.8vw, 84px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(193, 205, 216, .10);
    position: relative;
    z-index: 2;
}

.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 46px; flex: 0 0 auto; }
.brand-mark svg { width: 46px; fill: var(--reg-gold); filter: drop-shadow(0 0 15px rgba(242, 185, 95, .16)); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: Manrope, sans-serif; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.8px; }
.brand-tagline { color: #c2cbd5; font-size: 12px; letter-spacing: .05px; }
.brand-tagline b { color: var(--reg-gold); margin: 0 4px; }
.topbar-action { display: flex; align-items: center; justify-content: flex-end; gap: 20px; color: var(--reg-muted); font-size: 13px; }
.login-link { display: inline-flex; align-items: center; justify-content: center; min-width: 94px; min-height: 42px; padding: 0 20px; color: var(--reg-gold-light) !important; font-weight: 700; border: 1px solid var(--reg-gold-dark); border-radius: 12px; transition: background .2s, transform .2s, border-color .2s; }
.login-link:hover { background: rgba(242, 185, 95, .10); border-color: var(--reg-gold-light); transform: translateY(-1px); }

.register-layout {
    width: min(1440px, 100%);
    min-height: calc(100vh - 92px);
    margin: 0 auto;
    padding: 34px clamp(22px, 5.8vw, 84px) 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 530px);
    gap: clamp(40px, 7vw, 106px);
    align-items: center;
}

.story-panel {
    min-height: 690px;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    border-radius: 28px;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(6, 10, 15, .91) 0%, rgba(6, 10, 15, .66) 48%, rgba(6, 10, 15, .22) 100%),
        linear-gradient(0deg, rgba(6, 10, 15, .62), rgba(6, 10, 15, .06) 65%),
        url('/static/images/gather_auth_background.jpg');
    background-size: cover;
    background-position: center;
}
.story-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 14% 18%, rgba(242, 185, 95, .10), transparent 36%); }
.story-panel::after { content: ''; position: absolute; left: 0; bottom: 0; width: 58%; height: 2px; background: linear-gradient(90deg, var(--reg-gold), transparent); box-shadow: 0 0 22px rgba(242, 185, 95, .24); }
.story-content { width: 100%; padding: clamp(34px, 5vw, 66px); position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--reg-gold-light); font-weight: 700; font-size: 10px; letter-spacing: 2.2px; margin-bottom: 23px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--reg-gold); box-shadow: 0 0 14px rgba(242, 185, 95, .8); }
.story-content h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -2.2px; font-weight: 800; }
.headline-accent { display: block; margin-top: 8px; color: var(--reg-gold-light); background: linear-gradient(100deg, #ffe1a4, #f4b95e 56%, #dc8c39); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.story-intro { max-width: 470px; margin: 23px 0 35px; color: #c0cbd5; font-size: 15px; line-height: 1.9; }
.feature-list { display: grid; gap: 23px; max-width: 440px; }
.feature-item { display: flex; align-items: center; gap: 15px; }
.feature-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(242, 185, 95, .82); border-radius: 50%; background: rgba(5, 9, 13, .42); box-shadow: inset 0 0 20px rgba(242, 185, 95, .045); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--reg-gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-item span:last-child { display: flex; flex-direction: column; gap: 5px; }
.feature-item strong { font-size: 14px; color: #fff; }
.feature-item small { color: #b7c2cf; font-size: 12px; }
.story-footnote { display: flex; align-items: center; gap: 12px; margin-top: 50px; color: #d9c9af; font-size: 12px; letter-spacing: .25px; }
.footnote-line { width: 36px; height: 1px; background: var(--reg-gold); }

.form-panel { width: 100%; display: flex; justify-content: center; }
.form-card {
    width: 100%;
    padding: clamp(28px, 3.2vw, 43px);
    border: 1px solid rgba(217, 166, 88, .52);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(14, 20, 27, .97), rgba(7, 11, 16, .98));
    box-shadow: 0 24px 90px rgba(0, 0, 0, .35), 0 0 48px rgba(213, 145, 52, .055), inset 0 1px 0 rgba(255, 255, 255, .04);
    position: relative;
    overflow: hidden;
}
.form-card::before { content: ''; position: absolute; top: -115px; right: -100px; width: 240px; height: 240px; border-radius: 50%; background: rgba(242, 185, 95, .065); filter: blur(48px); pointer-events: none; }
.form-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 28px; position: relative; }
.form-heading-icon { width: 57px; flex: 0 0 auto; }
.form-heading-icon svg { width: 54px; fill: var(--reg-gold); }
.form-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-weight: 800; font-size: clamp(27px, 2.4vw, 34px); letter-spacing: -1.1px; line-height: 1.18; }
.form-heading p { color: var(--reg-muted); margin: 8px 0 0; font-size: 13px; }

.form-error { position: relative; margin: 0 0 20px; border: 1px solid rgba(255, 111, 111, .35); border-radius: 12px; padding: 12px 14px; background: rgba(151, 36, 36, .14); color: #ffb8b8; font-size: 13px; line-height: 1.5; }
.register-form { display: grid; gap: 17px; position: relative; }
.field-group { display: grid; gap: 8px; min-width: 0; }
.field-group label { color: #e8edf3; font-size: 12px; font-weight: 700; letter-spacing: .15px; }
.input-shell { height: 55px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid #3a4958; border-radius: 14px; background: rgba(5, 10, 15, .58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); transition: border-color .18s, box-shadow .18s, background .18s; }
.input-shell:focus-within { border-color: var(--reg-gold); background: rgba(8, 13, 18, .95); box-shadow: 0 0 0 3px rgba(242, 185, 95, .09); }
.field-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: #a8bbcd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-shell input { min-width: 0; flex: 1; width: 100%; height: 100%; border: 0; outline: 0; color: #f6f8fb; background: transparent; font-size: 13px; }
.input-shell input::placeholder { color: #8e9dad; opacity: 1; }
.input-shell input:focus-visible { outline: 0; }
.password-toggle { width: 28px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #a8bbcd; cursor: pointer; border-radius: 6px; }
.password-toggle:hover { color: var(--reg-gold-light); }
.password-toggle:focus-visible { outline: 2px solid var(--reg-gold); outline-offset: 2px; }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-help { padding-left: 2px; color: #8f9eae; font-size: 11px; line-height: 1.4; }
.submit-button { width: 100%; min-height: 56px; margin-top: 5px; padding: 0 22px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #f7c46e; border-radius: 14px; background: linear-gradient(110deg, #ffda91, #f2b95f 62%, #da964a); color: #21180e; box-shadow: 0 8px 24px rgba(191, 129, 53, .19), inset 0 1px 0 rgba(255, 255, 255, .42); font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .18s, filter .18s, box-shadow .18s; }
.submit-button:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 12px 30px rgba(191, 129, 53, .25), inset 0 1px 0 rgba(255, 255, 255, .42); }
.submit-button:active { transform: translateY(0); }
.submit-button:focus-visible { outline: 3px solid rgba(255, 213, 139, .5); outline-offset: 3px; }
.submit-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.form-bottom-note { margin-top: 23px; padding-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid rgba(158, 177, 194, .20); color: #a2b0bf; font-size: 11px; text-align: center; }
.secure-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.secure-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--reg-gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.terms-note { margin: 15px 0 0; color: #8694a3; font-size: 10.5px; line-height: 1.7; text-align: center; }
.mobile-login { display: none; }

@media (max-width: 1050px) {
    .register-layout { grid-template-columns: minmax(0, .95fr) minmax(380px, .95fr); gap: 28px; }
    .story-panel { min-height: 650px; }
    .story-content { padding: 32px; }
    .story-content h1 { font-size: clamp(35px, 4.2vw, 48px); }
    .form-card { padding: 28px; }
}

@media (max-width: 800px) {
    .topbar { min-height: 78px; padding: 15px 22px; }
    .brand-mark { width: 42px; }
    .brand-mark svg { width: 40px; }
    .brand-name { font-size: 24px; }
    .topbar-action > span { display: none; }
    .topbar-action { gap: 0; }
    .login-link { min-width: 79px; min-height: 39px; }
    .register-layout { min-height: calc(100vh - 78px); grid-template-columns: 1fr; gap: 25px; padding: 22px 18px 36px; max-width: 620px; }
    .story-panel { min-height: 0; border-radius: 22px; background-position: center 58%; }
    .story-content { padding: 32px 28px 30px; }
    .story-content h1 { font-size: clamp(36px, 8vw, 48px); }
    .story-intro { margin: 17px 0 24px; font-size: 14px; line-height: 1.7; }
    .feature-list { gap: 16px; }
    .feature-icon { width: 40px; height: 40px; }
    .story-footnote { margin-top: 27px; }
    .form-card { padding: 28px clamp(22px, 6vw, 36px); border-radius: 22px; }
    .mobile-login { display: block; margin: 18px 0 0; text-align: center; color: var(--reg-muted); font-size: 12px; }
    .mobile-login a { color: var(--reg-gold-light); font-weight: 700; }
}

@media (max-width: 420px) {
    .topbar { padding: 14px 16px; gap: 10px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 22px; }
    .brand-tagline { font-size: 10px; }
    .login-link { min-width: 70px; padding: 0 12px; font-size: 12px; }
    .register-layout { padding: 16px 12px 26px; }
    .story-content { padding: 27px 22px; }
    .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
    .story-content h1 { font-size: 35px; letter-spacing: -1.4px; }
    .form-card { padding: 25px 19px; }
    .form-heading { gap: 11px; }
    .form-heading-icon { width: 44px; }
    .form-heading-icon svg { width: 43px; }
    .form-heading h2 { font-size: 27px; }
    .input-shell { height: 52px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* Social authentication buttons and provider notices */
.social-divider{display:flex;align-items:center;gap:14px;margin:21px 0 14px;color:#7f8b97;font-size:11px;letter-spacing:.04em}
.social-divider::before,.social-divider::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,rgba(221,185,124,.25))}
.social-divider::after{background:linear-gradient(90deg,rgba(221,185,124,.25),transparent)}
.social-auth-buttons{display:grid;grid-template-columns:1fr;gap:10px}
.social-auth-button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:11px;padding:11px 15px;border:1px solid rgba(220,230,238,.17);border-radius:13px;background:linear-gradient(145deg,rgba(25,34,43,.95),rgba(10,16,23,.96));box-shadow:inset 0 1px rgba(255,255,255,.07),0 5px 0 rgba(0,0,0,.24);color:#edf1f4!important;font-size:12px;font-weight:700;text-decoration:none;transition:transform .18s,border-color .18s,background .18s,box-shadow .18s}
.social-auth-button:hover{transform:translateY(-2px);border-color:rgba(244,194,110,.55);background:linear-gradient(145deg,rgba(37,47,56,.98),rgba(13,20,27,.98));box-shadow:inset 0 1px rgba(255,255,255,.1),0 7px 0 rgba(0,0,0,.22),0 12px 24px rgba(0,0,0,.18)}
.social-auth-button:active{transform:translateY(1px);box-shadow:inset 0 2px 6px rgba(0,0,0,.25),0 2px 0 rgba(0,0,0,.24)}
.social-provider-icon{width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#f7f7f7;color:#4285f4;font:800 16px Arial,sans-serif}
.google-icon{background:conic-gradient(from -45deg,#4285f4 0deg 90deg,#34a853 90deg 165deg,#fbbc05 165deg 225deg,#ea4335 225deg 300deg,#4285f4 300deg);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4);}
.microsoft-icon{width:17px;height:17px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:2px}
.microsoft-icon i:nth-child(1){background:#f35325}.microsoft-icon i:nth-child(2){background:#81bc06}.microsoft-icon i:nth-child(3){background:#05a6f0}.microsoft-icon i:nth-child(4){background:#ffba08}
.social-flash{margin:0 0 12px}
@media (max-width:520px){.social-auth-button{min-height:46px}}


/* Additional device sizes for Gather login and registration. */
.register-shell, .register-layout, .story-panel, .form-panel, .form-card { min-width: 0; }
@media screen and (max-width: 600px) {
  .topbar { gap: 12px; }
  .register-layout { grid-template-columns: minmax(0, 1fr); }
  .story-content h1 { overflow-wrap: anywhere; }
  .form-card { max-width: 100%; }
  .register-form button, .social-auth-button, .login-link { min-height: 46px; }
  .input-shell input { font-size: 16px; }
}
@media screen and (min-width: 1600px) {
  .topbar, .register-layout { width: min(1720px, 100%); }
  .register-layout { grid-template-columns: minmax(0, 1fr) minmax(490px, 620px); gap: clamp(60px, 5vw, 130px); }
  .story-panel { min-height: clamp(720px, 52vh, 900px); }
  .story-content h1 { font-size: clamp(60px, 4vw, 78px); }
  .story-intro { max-width: 600px; font-size: 17px; }
  .feature-item strong { font-size: 16px; }
  .feature-item small { font-size: 14px; }
  .form-card { padding: clamp(44px, 3.2vw, 62px); }
}
@media screen and (min-width: 2200px) {
  .topbar, .register-layout { width: min(1900px, 100%); }
  .register-layout { grid-template-columns: minmax(0, 1fr) minmax(560px, 700px); }
  .story-panel { min-height: 940px; }
  .story-content h1 { font-size: 88px; }
  .story-intro { font-size: 19px; }
}
@media screen and (max-height: 620px) and (orientation: landscape) and (max-width: 900px) {
  .register-layout { padding-top: 16px; padding-bottom: 22px; gap: 18px; }
  .story-panel { min-height: 300px; }
  .story-content { padding: 25px; }
  .story-footnote { margin-top: 20px; }
  .form-card { padding: 23px; }
}
@media (pointer: coarse) {
  .login-link, .social-auth-button, .register-form button, .password-toggle { min-height: 44px; }
}
