/* Sign-in pages (Account/Logon, Account/ShopLogin): purple website design of the back office, with a live, animated art panel.
   Only appearance: the forms, field names and validation are the pages' own. */

:root {
    --ga-ink: #1e1b4b;
    --ga-text: #1f2937;
    --ga-muted: #6b7280;
    --ga-line: #e5e7eb;
    --ga-accent: #4f46e5;
    --ga-accent-2: #9333ea;
    --ga-card: #ffffff;
    --ga-page: #f6f5ff;
    --ga-field: #f9fafb;
}

html, body { height: 100%; }
body.ga-body { margin: 0; font-family: "Poppins", system-ui, sans-serif; color: var(--ga-text); background: var(--ga-page); }

.ga-auth { display: flex; min-height: 100vh; }

/* ---- Left: live art panel ---------------------------------------------------------------- */

.ga-art {
    position: relative; overflow: hidden; isolation: isolate; flex: 0 0 56%; max-width: 56%;
    display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem; color: #fff;
    background: linear-gradient(150deg, #1e1b4b 0%, #312e81 30%, #4f46e5 65%, #9333ea 100%);
}
/* drifting colour glows */
.ga-art::before, .ga-art::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
    animation: ga-drift 16s ease-in-out infinite alternate;
}
.ga-art::before { width: 420px; height: 420px; background: #ec4899; top: -140px; right: -120px; }
.ga-art::after { width: 380px; height: 380px; background: #22d3ee; bottom: -160px; left: -120px; animation-delay: -8s; opacity: .35; }
@keyframes ga-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 50px) scale(1.18); } }

.ga-brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.ga-brand-mark {
    width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px);
}
.ga-brand-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 16px rgba(17, 12, 60, .35), 0 0 0 2px rgba(255, 255, 255, .25); }
.ga-brand small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

/* concentric rings with POS icons orbiting (the reference's circles, in the purple theme) */
.ga-stage { position: relative; width: min(420px, 80%); aspect-ratio: 1; margin: 1.5rem auto 3.5rem; }
.ga-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.ga-ring.r2 { inset: 13%; background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02) 70%); animation: ga-pulse 5s ease-in-out infinite; }
.ga-ring.r3 { inset: 27%; background: linear-gradient(140deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .35); box-shadow: 0 20px 60px rgba(17, 12, 60, .35); backdrop-filter: blur(4px); }
@keyframes ga-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.04); opacity: 1; } }
.ga-core { position: absolute; inset: 27%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .25rem; }
.ga-core i { font-size: 3.1rem; line-height: 1; }
.ga-core-logo {
    width: 52%; aspect-ratio: 1; border-radius: 24%; display: block;
    box-shadow: 0 14px 34px rgba(17, 12, 60, .45), 0 0 0 4px rgba(255, 255, 255, .18);
    animation: ga-float 6s ease-in-out infinite;
}
@keyframes ga-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* POS terminal in the centre, the G logo on its screen */
.ga-pos { width: 92%; margin-top: 6%; height: auto; overflow: visible; filter: drop-shadow(0 12px 22px rgba(17, 12, 60, .45)); animation: ga-float 6s ease-in-out infinite; }
.ga-pos-receipt { transform-box: fill-box; transform-origin: 50% 100%; animation: ga-print 4.5s ease-in-out infinite; }
@keyframes ga-print { 0%, 15% { transform: translateY(26px); } 55%, 80% { transform: translateY(0); } 100% { transform: translateY(26px); } }
.ga-pos-led { animation: ga-led 1.6s ease-in-out infinite; }
@keyframes ga-led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.ga-orbit { position: absolute; inset: 0; animation: ga-spin 60s linear infinite; }
.ga-orbit.o2 { inset: 13%; }   /* same direction and speed as the outer orbit: the tiles never meet */
@keyframes ga-spin { to { transform: rotate(360deg); } }
.ga-chip {
    position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 21px; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32); backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(17, 12, 60, .25); animation: ga-spin 60s linear infinite reverse;   /* keeps the icon upright */
}
/* colourful POS icons: light see-through tiles tinted with their colour, white icon, matching coloured halo that breathes
   (the tile keeps its counter-spin; the pulse animates only the shadow) */
.ga-chip.c1 { --c: #f43f5e; --c2: #fb923c; --g: rgba(244, 63, 94, .55); --h: rgba(244, 63, 94, .28); --t1: rgba(244, 63, 94, .42); --t2: rgba(251, 146, 60, .22); }
.ga-chip.c2 { --c: #f59e0b; --c2: #facc15; --g: rgba(245, 158, 11, .55); --h: rgba(245, 158, 11, .28); --t1: rgba(245, 158, 11, .42); --t2: rgba(250, 204, 21, .22); }
.ga-chip.c3 { --c: #10b981; --c2: #22d3ee; --g: rgba(16, 185, 129, .55); --h: rgba(16, 185, 129, .28); --t1: rgba(16, 185, 129, .42); --t2: rgba(34, 211, 238, .22); }
.ga-chip.c4 { --c: #0ea5e9; --c2: #6366f1; --g: rgba(14, 165, 233, .55); --h: rgba(14, 165, 233, .28); --t1: rgba(14, 165, 233, .42); --t2: rgba(99, 102, 241, .22); }
.ga-chip.c5 { --c: #ec4899; --c2: #a855f7; --g: rgba(236, 72, 153, .55); --h: rgba(236, 72, 153, .28); --t1: rgba(236, 72, 153, .42); --t2: rgba(168, 85, 247, .22); }
.ga-chip.c6 { --c: #f97316; --c2: #f43f5e; --g: rgba(249, 115, 22, .55); --h: rgba(249, 115, 22, .28); --t1: rgba(249, 115, 22, .42); --t2: rgba(244, 63, 94, .22); }
.ga-chip.c7 { --c: #14b8a6; --c2: #84cc16; --g: rgba(20, 184, 166, .55); --h: rgba(20, 184, 166, .28); --t1: rgba(20, 184, 166, .42); --t2: rgba(132, 204, 22, .22); }
.ga-chip.c8 { --c: #8b5cf6; --c2: #ec4899; --g: rgba(139, 92, 246, .55); --h: rgba(139, 92, 246, .28); --t1: rgba(139, 92, 246, .42); --t2: rgba(236, 72, 153, .22); }
.ga-chip.c9 { --c: #eab308; --c2: #f97316; --g: rgba(234, 179, 8, .55); --h: rgba(234, 179, 8, .28); --t1: rgba(234, 179, 8, .42); --t2: rgba(249, 115, 22, .22); }
.ga-chip.c10 { --c: #d946ef; --c2: #f43f5e; --g: rgba(217, 70, 239, .55); --h: rgba(217, 70, 239, .28); --t1: rgba(217, 70, 239, .42); --t2: rgba(244, 63, 94, .22); }
.ga-chip.c11 { --c: #06b6d4; --c2: #3b82f6; --g: rgba(6, 182, 212, .55); --h: rgba(6, 182, 212, .28); --t1: rgba(6, 182, 212, .42); --t2: rgba(59, 130, 246, .22); }
.ga-chip.c12 { --c: #22c55e; --c2: #14b8a6; --g: rgba(34, 197, 94, .55); --h: rgba(34, 197, 94, .28); --t1: rgba(34, 197, 94, .42); --t2: rgba(20, 184, 166, .22); }
.ga-chip.c13 { --c: #f43f5e; --c2: #d946ef; --g: rgba(244, 114, 182, .55); --h: rgba(244, 114, 182, .28); --t1: rgba(244, 114, 182, .42); --t2: rgba(217, 70, 239, .22); }
.ga-chip.c14 { --c: #38bdf8; --c2: #818cf8; --g: rgba(56, 189, 248, .55); --h: rgba(56, 189, 248, .28); --t1: rgba(56, 189, 248, .42); --t2: rgba(129, 140, 248, .22); }
.ga-chip[class*=" c"] {
    width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 14px; font-size: 21px;
    background: linear-gradient(145deg, var(--t1), var(--t2)); border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px var(--g), 0 0 0 5px var(--h), inset 0 1px 0 rgba(255, 255, 255, .45);
    animation: ga-spin 60s linear infinite reverse, ga-halo 3.2s ease-in-out infinite;
}
.ga-chip[class*=" c"]:nth-child(even) { animation-delay: 0s, -1.6s; }
.ga-chip[class*=" c"] i { color: #fff; text-shadow: 0 2px 6px var(--g); }
/* feature name under the tile; it stays upright with the tile */
.ga-chip b {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 76px; margin-top: 6px; text-align: center;
    font-size: .625rem; font-weight: 600; line-height: 1.15; color: #fff; text-shadow: 0 1px 4px rgba(17, 12, 60, .85);
}
@keyframes ga-halo {
    0%, 100% { box-shadow: 0 10px 24px var(--g), 0 0 0 5px var(--h), inset 0 1px 0 rgba(255, 255, 255, .45); }
    50% { box-shadow: 0 14px 34px var(--g), 0 0 0 11px rgba(255, 255, 255, 0), inset 0 1px 0 rgba(255, 255, 255, .45); }
}
/* brighter orbit paths: the outer one dashed */
.ga-ring { border-color: rgba(255, 255, 255, .3); }
.ga-ring:first-child { border: 1.5px dashed rgba(255, 255, 255, .35); }
/* larger outer orbit, where the window is tall enough for it to clear the logo and the heading */
@media (min-height: 880px) { .ga-orbit:not(.o2), .ga-ring:first-child { inset: -8%; } }

.ga-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.2; margin: 0 0 .6rem; color: #fff; }
.ga-copy p { margin: 0; max-width: 42ch; opacity: .85; font-size: .95rem; }
.ga-features { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.ga-features span {
    display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 500;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
}
.ga-live { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; opacity: .9; margin-top: 1.25rem; }
.ga-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ga-blink 2s ease-out infinite; }
@keyframes ga-blink { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---- Right: sign-in card ----------------------------------------------------------------- */

.ga-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem 1.25rem; position: relative; }
.ga-main::before {   /* faint grid like the reference's clean white side */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(79, 70, 229, .07) 1px, transparent 1px); background-size: 22px 22px;
}
.ga-card {
    width: 100%; max-width: 420px; background: var(--ga-card); border-radius: 20px; padding: 1.9rem 2rem 1.5rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 60px rgba(49, 46, 129, .14); border: 1px solid rgba(79, 70, 229, .08);
    animation: ga-rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
.ga-main > .ga-card { margin-top: auto; }   /* with the footer's auto margin: the login block sits in the middle of the free height */
@keyframes ga-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.ga-logo { display: block; text-align: center; margin-bottom: 1.1rem; }
.ga-logo img { height: 52px; max-width: 100%; }

.ga-steps { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1.1rem; font-size: .75rem; font-weight: 600; color: var(--ga-muted); }
.ga-steps .s { display: inline-flex; align-items: center; gap: .4rem; }
.ga-steps .n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; background: #eef2ff; color: var(--ga-accent); }
.ga-steps .s.on { color: var(--ga-ink); }
.ga-steps .s.on .n { background: linear-gradient(135deg, var(--ga-accent), var(--ga-accent-2)); color: #fff; box-shadow: 0 4px 10px rgba(79, 70, 229, .35); }
.ga-steps .s.done .n { background: #d1fae5; color: #047857; }
.ga-steps .bar { width: 36px; height: 2px; border-radius: 2px; background: var(--ga-line); }
.ga-steps .bar.on { background: linear-gradient(90deg, var(--ga-accent), var(--ga-accent-2)); }

.ga-title { font-size: 1.4rem; font-weight: 700; color: var(--ga-ink); margin: 0; }
.ga-sub { color: var(--ga-muted); font-size: .9rem; margin: .25rem 0 1.3rem; }

/* server message (invalid sign-in, ...) inside the card */
.ga-alert {
    display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .85rem; margin: -.5rem 0 1.1rem; border-radius: 12px;
    font-size: .875rem; line-height: 1.4; border: 1px solid transparent; animation: ga-alert-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
.ga-alert-danger { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.ga-alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.ga-alert-success { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.ga-alert-primary { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }
.ga-alert-ico { font-size: 1.15rem; line-height: 1.2; flex: 0 0 auto; }
.ga-alert-text { flex: 1; font-weight: 500; }
.ga-alert-x { flex: 0 0 auto; border: 0; background: none; padding: 0; color: inherit; opacity: .6; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ga-alert-x:hover { opacity: 1; }
@keyframes ga-alert-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ga-card.ga-shake { animation: ga-shake .45s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes ga-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.ga-input.ga-invalid .form-control { border-color: #fca5a5; background-color: #fff; }

.ga-field { margin-bottom: .95rem; }
.ga-field > label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ga-muted); margin-bottom: .4rem; }
.ga-input { position: relative; }
.ga-input > i.ga-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #9ca3af; pointer-events: none; transition: color .2s ease; }
.ga-input .form-control, .ga-input .form-select {
    height: 46px; padding-left: 42px; border-radius: 11px; border: 1.5px solid var(--ga-line); background-color: var(--ga-field);
    font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ga-input .form-control:focus, .ga-input .form-select:focus { border-color: #a5b4fc; background-color: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.ga-input:focus-within > i.ga-ico { color: var(--ga-accent); }
.ga-input .password-input { padding-right: 46px; }
.ga-input .password-addon { height: 46px; width: 46px; color: #9ca3af !important; }
.ga-input .password-addon:hover { color: var(--ga-accent) !important; }
.ga-field .text-danger { display: block; font-size: .8rem; margin-top: .3rem; }
.ga-summary .text-danger ul { margin: 0 0 .75rem; padding-left: 1.1rem; font-size: .85rem; }

.ga-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .15rem 0 1.15rem; font-size: .875rem; }
.ga-row .form-check-input { width: 1.05em; height: 1.05em; margin-top: .2em; cursor: pointer; }
.ga-row .form-check-input:checked { background-color: var(--ga-accent); border-color: var(--ga-accent); }
.ga-row .form-check-label { color: var(--ga-text); cursor: pointer; }
.ga-link { color: var(--ga-accent); font-weight: 600; text-decoration: none; }
.ga-link:hover { color: #4338ca; text-decoration: underline; }

.ga-btn {
    position: relative; overflow: hidden; width: 100%; height: 48px; border: 0; border-radius: 11px; color: #fff; font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #9333ea); box-shadow: 0 10px 24px rgba(79, 70, 229, .3);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ga-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
.ga-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .38); color: #fff; }
.ga-btn:hover::after { animation: ga-shine .9s ease; }
.ga-btn:active { transform: translateY(0); }
.ga-btn:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.ga-btn.ga-busy { pointer-events: none; filter: saturate(.8); }
.ga-btn .spinner-border { width: 1.1rem; height: 1.1rem; border-width: .15em; }
@keyframes ga-shine { to { left: 130%; } }

.ga-back { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; font-size: .85rem; color: var(--ga-muted); text-decoration: none; }
.ga-back:hover { color: var(--ga-accent); }
.ga-powered { text-align: center; color: #9ca3af; font-size: .76rem; margin-top: 1.1rem; }

.ga-below { width: 100%; max-width: 420px; text-align: center; margin-top: 1.1rem; font-size: .875rem; color: var(--ga-muted); animation: ga-rise .6s .12s cubic-bezier(.2, .8, .2, 1) both; }
.ga-below p { margin: 0 0 .5rem; }
.ga-apps { display: flex; justify-content: center; gap: .6rem; margin: .75rem 0; }
.ga-apps a { display: inline-block; border-radius: 8px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ga-apps a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16, 24, 40, .15); }
.ga-apps img { height: 38px; width: auto; display: block; }
.ga-support { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--ga-ink); }
.ga-foot { margin-top: auto; padding-top: 1.5rem; font-size: .78rem; color: #9ca3af; text-align: center; }
.ga-foot b { color: var(--ga-ink); font-weight: 600; }

/* ---- Responsive -------------------------------------------------------------------------- */

@media (min-width: 992px) and (max-width: 1109.98px) { .ga-chip b { display: none; } }   /* the circle is too small for the names here */
@media (max-width: 991.98px) {
    .ga-auth { flex-direction: column; }
    .ga-art { flex: none; max-width: none; padding: 1.5rem 1.5rem 1.75rem; }
    .ga-stage, .ga-features, .ga-live { display: none; }
    .ga-copy { margin-top: 1rem; }
    .ga-copy h2 { font-size: 1.35rem; }
    .ga-main { padding-top: 0; }
    .ga-main > .ga-card { margin-top: -1rem; }   /* overlaps the purple band; no centring gap on phones */
}
@media (max-width: 575.98px) {
    .ga-card { padding: 1.75rem 1.25rem 1.25rem; border-radius: 18px; }
    .ga-input .form-control, .ga-input .form-select { font-size: 16px; }   /* no iOS zoom on focus */
    .ga-main { padding-left: .9rem; padding-right: .9rem; }
    .ga-apps img { height: 36px; }
    .ga-copy p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ga-art::before, .ga-art::after, .ga-ring.r2, .ga-orbit, .ga-chip, .ga-chip[class*=" c"], .ga-live::before, .ga-core-logo, .ga-pos, .ga-pos-receipt, .ga-pos-led { animation: none; }
    .ga-card, .ga-below { animation: none; }
    .ga-card.ga-shake, .ga-alert { animation: none; }
    .ga-btn, .ga-btn:hover { transition: none; transform: none; }
    .ga-btn:hover::after { animation: none; }
}
