/* Sign in, register and password reset. Full-screen split: blurred site photo on the
   left, white form panel on the right (photo header over the form on phones).
   Scoped under .g2f-auth; px units because the layout loads milligram (root 62.5%). */

body:has(.g2f-auth) { min-height: 100vh; }
body:has(.g2f-auth) .g2f-nav,
body:has(.g2f-auth) > footer,
body:has(.g2f-auth) .banner-top { display: none !important; }
body:has(.g2f-auth) > main.main { padding: 0 !important; background: transparent !important; }
.container:has(> .g2f-auth) { max-width: none !important; margin: 0; padding: 0 !important; background: transparent; }

/* Photo behind the brand side, pinned to the viewport. */
body:has(.g2f-auth)::before,
body:has(.g2f-auth)::after {
    content: "";
    position: fixed;
    inset: -20px;
    z-index: -1;
    pointer-events: none;
}
body:has(.g2f-auth)::before {
    background-color: #0b0b0c;
    background-image: inherit;
    background-size: cover;
    background-position: center top;
    filter: blur(3px) saturate(1.1);
}
body:has(.g2f-auth)::after {
    background:
        radial-gradient(circle at 60% 15%, rgba(250, 16, 104, .28), transparent 45%),
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .7) 45%, rgba(11, 11, 12, .96) 78%, #0b0b0c 100%);
}

.g2f-auth {
    --au-pink: #FA1068;
    --au-ink: #111827;
    --au-muted: #6b7280;
    --au-field: #d0d5dd;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 640px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--au-ink);
}
.g2f-auth *, .g2f-auth *::before, .g2f-auth *::after { box-sizing: border-box; }

/* ── Brand side ─────────────────────────────────────────────────────── */
.g2f-auth__brand { padding: 40px 56px 56px; display: flex; flex-direction: column; color: #fff; }
.g2f-auth__logo { display: inline-block; width: max-content; margin-left: -16px; }
.g2f-auth__logo img { display: block; height: 72px; width: auto; }
.g2f-auth__pitch { margin-top: auto; max-width: 560px; }
.g2f-auth__pitch h1 { margin: 0; font-family: Raleway, sans-serif; font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.g2f-auth__pitch p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: #e5e7eb; }
.g2f-auth__pitch p + p { margin-top: 18px; color: #fff; }
.g2f-auth__pitch strong { color: var(--au-pink); }

/* ── Form side ──────────────────────────────────────────────────────── */
.g2f-auth__panel { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 72px; }
.g2f-auth__form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.g2f-auth__form--wide { max-width: 520px; gap: 20px; }
.g2f-auth__form form { margin: 0; }
.g2f-auth__head h2 { margin: 0; font-family: Raleway, sans-serif; font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--au-ink); }
.g2f-auth__head p { margin: 4px 0 0; font-size: 14px; color: var(--au-muted); }
.g2f-auth a { color: var(--au-pink); font-weight: 700; text-decoration: none; }
.g2f-auth a:hover { text-decoration: underline; }
.g2f-auth .message { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.g2f-auth .message.hidden { display: none; }
.g2f-auth .message.error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.g2f-auth .message.success { background: #f6fef9; border: 1px solid #d1fadf; color: #067647; }
.g2f-auth .message.warning { background: #fffaeb; border: 1px solid #fedf89; color: #b54708; }
.g2f-auth .message:not(.error):not(.success):not(.warning) { background: #eff8ff; border: 1px solid #b2ddff; color: #175cd3; }
.g2f-auth .message::before, .g2f-auth .message::after { content: none !important; }

.g2f-auth__stack { display: flex; flex-direction: column; gap: 14px; }
.g2f-auth__stack[hidden], .g2f-auth [hidden] { display: none !important; }

/* Password / Email Code switch */
.g2f-auth__seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #f2f4f7; }
.g2f-auth .g2f-auth__seg button {
    height: 42px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; box-shadow: none;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: normal; color: var(--au-ink); cursor: pointer;
}
.g2f-auth .g2f-auth__seg button i { font-size: 12px; color: var(--au-muted); }
.g2f-auth .g2f-auth__seg button.is-active { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.g2f-auth .g2f-auth__seg button.is-active i { color: var(--au-pink); }

/* Fields */
.g2f-auth__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; font-weight: 400; }
.g2f-auth__field > span:first-child, .g2f-auth__label { font-size: 13px; font-weight: 600; color: #374151; }
.g2f-auth__label small, .g2f-auth__field > span:first-child small { font-size: 13px; font-weight: 400; color: #9ca3af; }
.g2f-auth .g2f-auth__field .input { margin: 0; }
.g2f-auth .g2f-auth__field .input > label { display: none; }
.g2f-auth input[type=text], .g2f-auth input[type=email], .g2f-auth input[type=password], .g2f-auth input[type=tel],
.g2f-auth input[type=date], .g2f-auth input[type=number], .g2f-auth select {
    width: 100%; height: 48px; margin: 0; padding: 0 14px;
    border: 1px solid var(--au-field); border-radius: 12px; background: #fff; box-shadow: none;
    font: inherit; font-size: 16px; font-weight: 400; color: var(--au-ink);
}
.g2f-auth input:focus, .g2f-auth select:focus { outline: none; border-color: #f9a8c9; box-shadow: 0 0 0 3px rgba(250, 16, 104, .12); }
.g2f-auth input::placeholder { color: #9ca3af; }
.g2f-auth .g2f-auth__code::placeholder { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 400; letter-spacing: normal; }
.g2f-auth input.is-bad, .g2f-auth .error input { border-color: #f04438; }
.g2f-auth .error-message { margin-top: 4px; font-size: 12px; color: #d92d20; }
.g2f-auth select { padding-right: 36px; appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 11px 8px; }
.g2f-auth__hint { font-size: 12px; color: var(--au-muted); }
.g2f-auth__hint.is-ok { color: #067647; }
.g2f-auth__hint.is-bad { color: #d92d20; }

/* Password with show/hide */
.g2f-auth__pw { position: relative; }
.g2f-auth .g2f-auth__pw input { padding-right: 52px; }
.g2f-auth .g2f-auth__eye {
    position: absolute; top: 0; right: 0; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; background: transparent;
    color: var(--au-muted); font-size: 15px; line-height: 1; cursor: pointer;
}
.g2f-auth .g2f-auth__eye:hover { color: var(--au-pink); background: transparent; }

/* Buttons */
.g2f-auth .g2f-auth__btn {
    width: 100%; height: 50px; margin: 0; padding: 0 22px; border: 0; border-radius: 999px; background: var(--au-pink); box-shadow: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 16px; font-weight: 700; line-height: 1; text-transform: none; letter-spacing: normal; color: #fff !important; cursor: pointer;
}
.g2f-auth .g2f-auth__btn:hover { background: #e00d5d; text-decoration: none; }
.g2f-auth .g2f-auth__btn i { font-size: 13px; }
.g2f-auth .g2f-auth__btn:disabled, .g2f-auth .g2f-auth__btn[aria-disabled="true"] { background: #f2f4f7; color: #9ca3af !important; cursor: not-allowed; }
.g2f-auth .g2f-auth__btn.is-done { background: #079455; }
.g2f-auth .g2f-auth__btn--ghost { height: 48px; border: 1px solid var(--au-field); background: #fff; color: var(--au-ink) !important; font-size: 15px; }
.g2f-auth .g2f-auth__btn--ghost:hover { background: #f9fafb; }
.g2f-auth .g2f-auth__btn--back { width: auto; flex: none; border: 1px solid var(--au-field); background: #fff; color: #374151 !important; font-size: 15px; font-weight: 600; }
.g2f-auth .g2f-auth__btn--back:hover { background: #f9fafb; }
.g2f-auth .g2f-auth__textbtn {
    margin: 0; padding: 0; height: auto; border: 0; background: transparent; box-shadow: none;
    font: inherit; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--au-muted); cursor: pointer;
}
.g2f-auth .g2f-auth__textbtn:hover { color: var(--au-pink); background: transparent; text-decoration: none; }
.g2f-auth .g2f-auth__textbtn i { margin-right: 6px; }
.g2f-auth__actions { display: flex; gap: 10px; }

.g2f-auth__links { display: flex; justify-content: center; gap: 20px; font-size: 13px; }
.g2f-auth .g2f-auth__links a { color: var(--au-muted); font-weight: 400; }
.g2f-auth .g2f-auth__links a:hover { color: var(--au-pink); }
.g2f-auth__divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #9ca3af; }
.g2f-auth__divider::before, .g2f-auth__divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.g2f-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--au-muted); }
.g2f-auth__center { text-align: center; font-size: 13px; color: var(--au-muted); }

/* Status box (email code) */
.g2f-auth__note { padding: 12px 14px; border-radius: 12px; font-size: 14px; text-align: center; }
.g2f-auth__note.is-ok { background: #f6fef9; border: 1px solid #d1fadf; color: #067647; }
.g2f-auth__note.is-bad { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

/* One box per code digit */
.g2f-auth__digits { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 8px; }
.g2f-auth .g2f-auth__digits input {
    height: 58px; padding: 0; border-width: 1.5px; text-align: center;
    font-family: Raleway, sans-serif; font-size: 24px; font-weight: 800;
}
.g2f-auth .g2f-auth__digits input:not(:placeholder-shown) { border-color: #98a2b3; }
.g2f-auth .g2f-auth__code {
    height: 52px; text-align: center; font-family: Raleway, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: 3px;
}

/* ── Register ───────────────────────────────────────────────────────── */
.g2f-auth__steps { display: flex; gap: 6px; }
.g2f-auth .g2f-auth__steps button {
    flex: 1; height: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; text-align: left;
    font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: normal; color: #9ca3af; cursor: pointer;
}
.g2f-auth .g2f-auth__steps button::before { content: ""; height: 4px; border-radius: 999px; background: #e5e7eb; }
.g2f-auth .g2f-auth__steps button.is-done { color: var(--au-ink); }
.g2f-auth .g2f-auth__steps button.is-done::before, .g2f-auth .g2f-auth__steps button.is-current::before { background: var(--au-pink); }
.g2f-auth .g2f-auth__steps button.is-current { color: #c0105a; }
.g2f-auth .g2f-auth__steps button:disabled { cursor: default; }

.g2f-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g2f-auth__grid > .full { grid-column: 1 / -1; }

.g2f-auth__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.g2f-auth__meter span { height: 5px; border-radius: 999px; background: #e5e7eb; transition: background .15s; }
.g2f-auth__rules { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--au-muted); }
.g2f-auth__rules li { margin: 0; display: flex; align-items: center; gap: 6px; }
.g2f-auth__rules li::before { content: "\f111"; font-family: "Font Awesome 6 Free"; font-weight: 400; font-size: 11px; }
.g2f-auth__rules li.is-ok { color: #067647; }
.g2f-auth__rules li.is-ok::before { content: "\f00c"; font-weight: 900; }

.g2f-auth__photo { display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px; border: 2px dashed var(--au-field); border-radius: 14px; background: #f9fafb; cursor: pointer; }
.g2f-auth__photo.is-over { border-color: var(--au-pink); background: #fdf7fa; }
.g2f-auth__avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: #fdf2f6 center / cover no-repeat; color: var(--au-pink); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.g2f-auth__avatar.has-img i { display: none; }
.g2f-auth__phototext { flex: 1; min-width: 0; font-size: 13px; font-weight: 400; color: var(--au-muted); }
.g2f-auth__phototext strong { display: block; font-size: 14px; color: var(--au-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g2f-auth__choose { height: 40px; padding: 0 16px; border: 1px solid var(--au-field); border-radius: 999px; background: #fff; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--au-ink); white-space: nowrap; }

.g2f-auth__tos { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 400; line-height: 1.5; color: #374151; cursor: pointer; }
.g2f-auth__tos:has(input:checked) { border-color: var(--au-pink); background: #fdf7fa; }
.g2f-auth .g2f-auth__tos input[type=checkbox] { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--au-pink); cursor: pointer; }
.g2f-auth .g2f-auth__tos a { font-weight: 600; }

.g2f-auth__admin { padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; display: flex; flex-direction: column; gap: 8px; }
.g2f-auth__admin h4 { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--au-muted); }
.g2f-auth__admin .input { margin: 0; }
.g2f-auth__admin label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.g2f-auth__admin input[type=checkbox] { margin: 0; accent-color: var(--au-pink); }

/* ── Single centred card: MFA code, member card ─────────────────────── */
body:has(.g2f-auth--plain)::before { background-image: none; filter: none; }
body:has(.g2f-auth--plain)::after { background: radial-gradient(circle at 80% 0%, rgba(250, 16, 104, .45), transparent 55%), #0b0b0c; }
.g2f-auth--solo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 96px 16px 40px; }
.g2f-auth--solo > .g2f-auth__logo { position: absolute; top: 16px; left: 24px; margin: 0; }
.g2f-auth--solo > .g2f-auth__logo img { height: 60px; }
.g2f-auth__solo { width: 100%; max-width: 440px; padding: 30px 30px 26px; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 16px; text-align: center; }
.g2f-auth__solo form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.g2f-auth__solo h2 { margin: 0; font-family: Raleway, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.25; color: var(--au-ink); }
.g2f-auth__solo p { margin: 6px 0 0; font-size: 14px; color: var(--au-muted); }
.g2f-auth__badgeicon { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; background: #fdf2f6; color: var(--au-pink); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.g2f-auth .g2f-auth__digits.is-tight { gap: 6px; }
.g2f-auth .g2f-auth__digits.is-tight input { height: 52px; font-size: 22px; padding: 0; }

/* Member card */
.g2f-auth__member { width: 100%; max-width: 390px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); color: var(--au-ink); }
.g2f-auth__memberhead { padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: linear-gradient(180deg, #fdf2f6, #fff); }
.g2f-auth__memberhead.is-plain { background: #fff; }
.g2f-auth__memberpic { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--au-pink); color: #fff; font-family: Raleway, sans-serif; font-weight: 800; font-size: 34px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--au-pink); }
.g2f-auth__memberpic img { width: 100%; height: 100%; object-fit: cover; }
.g2f-auth__memberpic.is-none { background: #f2f4f7; color: #9ca3af; box-shadow: none; }
.g2f-auth__memberpic.is-bad { width: 72px; height: 72px; background: #fef3f2; color: #d92d20; font-size: 28px; box-shadow: none; }
.g2f-auth__membername { font-family: Raleway, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.g2f-auth__pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.g2f-auth__pill.is-ok { background: #ecfdf3; color: #067647; }
.g2f-auth__pill.is-bad { background: #fef3f2; color: #b42318; }
.g2f-auth__memberrows { padding: 6px 20px 18px; }
.g2f-auth__memberrows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; font-size: 15px; }
.g2f-auth__memberrows > div:last-child { border-bottom: 0; }
.g2f-auth__memberrows span:first-child { color: var(--au-muted); }
.g2f-auth__memberrows span:last-child { font-weight: 700; }
.g2f-auth__memberrows code { font-family: monospace; font-size: 16px; font-weight: 800; color: var(--au-ink); background: none; padding: 0; }
.g2f-auth__memberqr { padding: 0 20px 20px; display: flex; justify-content: center; }
.g2f-auth__memberqr img { width: 160px; height: 160px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 12px; }
.g2f-auth__checked { font-size: 12px; color: #9ca3af; text-align: center; }
.g2f-auth .g2f-auth__getcard { margin-top: 8px; font-size: 13px; font-weight: 400; color: #d1d5db; }
.g2f-auth .g2f-auth__getcard strong { color: #fff; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .g2f-auth { grid-template-columns: minmax(0, 1fr) 560px; }
    .g2f-auth__brand { padding: 32px 40px 48px; }
    .g2f-auth__pitch h1 { font-size: 44px; }
    .g2f-auth__panel { padding: 40px 48px; }
}
@media (max-width: 860px) {
    .g2f-auth { display: block; min-height: 0; }
    .g2f-auth__brand { height: 200px; padding: 12px 20px 20px; }
    .g2f-auth__logo { margin-left: -10px; }
    .g2f-auth__logo img { height: 52px; }
    .g2f-auth__pitch h1 { font-size: 28px; letter-spacing: 0; }
    .g2f-auth__pitch p { display: none; }
    .g2f-auth__panel { display: block; min-height: calc(100vh - 200px); padding: 24px 20px 32px; }
    .g2f-auth__form { margin: 0 auto; }
    .g2f-auth__head h2 { font-size: 26px; }
    .g2f-auth__grid { grid-template-columns: 1fr; }
    .g2f-auth .g2f-auth__digits input { height: 50px; }
}
@media (max-width: 380px) {
    .g2f-auth__digits { gap: 6px; }
    .g2f-auth__photo { flex-wrap: wrap; }
}
@media (max-width: 860px) {
    .g2f-auth.g2f-auth--solo { display: flex; min-height: 100vh; padding: 84px 16px 32px; }
    .g2f-auth--solo > .g2f-auth__logo { left: 12px; top: 12px; }
    .g2f-auth--solo > .g2f-auth__logo img { height: 52px; }
    .g2f-auth__solo { padding: 24px 18px 20px; }
    .g2f-auth .g2f-auth__digits.is-tight { gap: 4px; }
    .g2f-auth .g2f-auth__digits.is-tight input { height: 46px; font-size: 20px; }
}
