/* ==========================================================================
   MCG Theme — Sign in / Sign up (sliding panel design)
   A large blue circle slides across the page; forms and panels swap sides.
   Phones (< 870px): no slide, a compact header + one form at a time.
   ========================================================================== */

:root {
	--auth-blue: #2563eb;
	--auth-navy: #1e3a8a;
	--auth-sky: #38bdf8;
	--auth-ink: #0f172a;
	--auth-text: #334155;
	--auth-muted: #64748b;
	--auth-field: #f1f5f9;
	--auth-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--auth-slide: 1.8s;
}

*, *::before, *::after { box-sizing: border-box; }
body.mcg-auth-body { margin: 0; font-family: var(--auth-font); color: var(--auth-ink); background: #fff; overflow-x: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mcg-auth-body :focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

.auth-back { position: fixed; top: 16px; left: 16px; z-index: 20; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--auth-navy); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgb(15 23 42 / .15); }
.auth-back:hover { background: #fff; }

.auth { position: relative; width: 100%; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: #fff; }

/* The sliding circle */
.auth::before {
	content: "";
	position: absolute;
	z-index: 6;
	width: 2000px;
	height: 2000px;
	top: -10%;
	right: 48%;
	border-radius: 50%;
	background: linear-gradient(-45deg, var(--auth-sky) 0%, var(--auth-blue) 45%, var(--auth-navy) 100%);
	transform: translateY(-50%);
	transition: transform var(--auth-slide) ease-in-out, right var(--auth-slide) ease-in-out;
}
.auth.is-register::before { transform: translate(100%, -50%); right: 52%; }

/* Forms ------------------------------------------------------------------- */
.auth__forms { position: absolute; inset: 0; }
.auth-form {
	position: absolute;
	top: 50%;
	left: 75%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(400px, 42vw);
	padding: 0 8px;
	transform: translate(-50%, -50%);
	transition: left 1s ease-in-out .7s, opacity .2s linear .7s;
}
.auth-form--register { opacity: 0; z-index: 1; pointer-events: none; }
.auth.is-register .auth-form { left: 25%; }
.auth.is-register .auth-form--login { opacity: 0; z-index: 1; pointer-events: none; }
.auth.is-register .auth-form--register { opacity: 1; z-index: 5; pointer-events: auto; }

.auth-form__title { margin: 0 0 14px; font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; color: var(--auth-ink); }

.auth-field { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; margin: 8px 0; padding: 0 18px; border-radius: 54px; background: var(--auth-field); color: #94a3b8; transition: box-shadow .15s; }
.auth-field:focus-within { box-shadow: 0 0 0 2px #93c5fd; color: var(--auth-blue); }
.auth-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--auth-ink); }
.auth-field input::placeholder { color: #94a3b8; font-weight: 500; }
.auth-field__eye { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: #94a3b8; cursor: pointer; }
.auth-field__eye[aria-pressed="true"] { color: var(--auth-blue); }

.auth-row { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 6px 0 4px; font-size: 13px; }
.auth-row a { color: var(--auth-blue); font-weight: 600; text-decoration: none; }
.auth-check { display: inline-flex; align-items: center; gap: 6px; color: var(--auth-text); font-size: 13px; }
.auth-check--consent { align-items: flex-start; width: 100%; margin: 8px 0 2px; line-height: 1.4; }
.auth-check--consent input { margin-top: 2px; }
.auth-check a { color: var(--auth-blue); }

.auth-btn { display: inline-grid; place-items: center; min-width: 160px; height: 50px; margin: 14px 0 6px; padding: 0 28px; border: 0; border-radius: 50px; background: var(--auth-blue); color: #fff; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.auth-btn:hover { background: var(--auth-navy); color: #fff; }
.auth-btn--ghost { height: 44px; min-width: 150px; margin: 0; background: none; border: 2px solid #fff; font-size: 13px; }
.auth-btn--ghost:hover { background: rgb(255 255 255 / .15); }

.auth-divider { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0; color: var(--auth-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.auth-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border: 1px solid #cbd5e1; border-radius: 48px; background: #fff; color: var(--auth-ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .15s, border-color .15s; }
.auth-google:hover { background: #f8fafc; border-color: #94a3b8; color: var(--auth-ink); }

.auth-alert { width: 100%; margin: 4px 0 8px; padding: 10px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px; font-weight: 600; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-mobile-switch { display: none; margin: 10px 0 0; font-size: 14px; color: var(--auth-text); }
.auth-mobile-switch a { color: var(--auth-blue); font-weight: 700; }

/* Panels over the circle -------------------------------------------------- */
.auth__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); pointer-events: none; }
.auth-panel { position: relative; z-index: 7; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-around; padding: 72px 17% 40px 12%; text-align: center; color: #fff; }
.auth-panel--left { pointer-events: auto; }
.auth-panel--right { padding: 72px 12% 40px 17%; }
.auth.is-register .auth-panel--left { pointer-events: none; }
.auth.is-register .auth-panel--right { pointer-events: auto; }

.auth-panel__content { max-width: 360px; transition: transform .9s ease-in-out .6s; }
.auth-panel__content h2 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; color: #fff; }
.auth-panel__content p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #e0f2fe; }

.auth-panel__image { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 18px; box-shadow: 0 20px 45px rgb(2 6 23 / .35); transition: transform 1.1s ease-in-out .4s; }
.auth-panel__image--logo { max-width: 380px; }

.auth-panel--right .auth-panel__content,
.auth-panel--right .auth-panel__image { transform: translateX(800px); }
.auth.is-register .auth-panel--left .auth-panel__content,
.auth.is-register .auth-panel--left .auth-panel__image { transform: translateX(-800px); }
.auth.is-register .auth-panel--right .auth-panel__content,
.auth.is-register .auth-panel--right .auth-panel__image { transform: translateX(0); }

/* Phones & small tablets: static layout ------------------------------------ */
@media (max-width: 870px) {
	.auth { display: flex; flex-direction: column; min-height: 100dvh; }
	.auth::before { display: none; }

	.auth__panels { position: static; order: -1; display: block; pointer-events: auto; background: linear-gradient(135deg, var(--auth-navy), var(--auth-blue) 60%, var(--auth-sky)); }
	.auth-panel { display: none; padding: 64px 20px 24px; align-items: center; }
	.auth-panel--left { display: flex; }
	.auth.is-register .auth-panel--left { display: none; }
	.auth.is-register .auth-panel--right { display: flex; }
	.auth-panel__content, .auth-panel__image,
	.auth-panel--right .auth-panel__content, .auth-panel--right .auth-panel__image,
	.auth.is-register .auth-panel--left .auth-panel__content, .auth.is-register .auth-panel--left .auth-panel__image { transform: none; transition: none; }
	.auth-panel__content .auth-btn--ghost { display: none; }
	.auth-panel__content p { margin: 0; }
	.auth-panel__image { max-width: 200px; margin-top: 16px; border-radius: 12px; }
	.auth-panel__image--photo { display: none; }

	.auth__forms { position: static; flex: 1; padding: 24px 20px 40px; }
	.auth-form, .auth.is-register .auth-form { position: static; width: 100%; max-width: 420px; margin: 0 auto; transform: none; transition: none; }
	.auth-form--register, .auth.is-register .auth-form--login { display: none; }
	.auth.is-register .auth-form--register { display: flex; opacity: 1; }
	.auth-form__title { font-size: 1.7rem; }
	.auth-mobile-switch { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	.auth::before, .auth-form, .auth-panel__content, .auth-panel__image { transition: none; }
}
