/*
 * The community's login, forgot-password and reset-password pages.
 * Colors come from tokens printed inline by Login::styles(), from the community's accent.
 */
:root {
	--bg: #ffffff;
	--surface: #ffffff;
	--text: #1c1e21;
	--text-2: #5f6670;
	--line: #dadde1;
	--soft: #f0f2f5;
	--danger: #c5221f;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111214;
		--surface: #18191c;
		--text: #eceef1;
		--text-2: #a2a7b0;
		--line: #2c2e33;
		--soft: #222327;
		--danger: #ff6b5f;
	}
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	background: var(--bg);
	color: var(--text);
	font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.brand-side { position: relative; display: flex; flex-direction: column; height: 100vh; min-height: 620px; padding: 40px; border-right: 1px solid var(--line); overflow: hidden; }
.logo { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 22px; text-decoration: none; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; }
.headline { position: relative; z-index: 2; margin: 0; max-width: 300px; font-size: clamp(40px, 7.2vh, 56px); line-height: 1.05; font-weight: 750; letter-spacing: -0.03em; }
.headline em { font-style: normal; color: var(--accent-text); }
.tagline { position: relative; z-index: 2; margin: 14px 0 0; max-width: 340px; color: var(--text-2); font-size: 16px; }

/* The illustration: a post, a reel, a member and reactions, drawn in the community's color. */
.art { position: absolute; top: 4%; left: 34%; width: 340px; height: 420px; transform-origin: top left; }
@media (max-height: 760px) { .art { transform: scale(0.85); } }
.art > * { position: absolute; border-radius: 16px; box-shadow: 0 10px 30px rgb(0 0 0 / 12%); }
.reel { top: 0; left: 120px; width: 180px; height: 300px; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #6b4dff)); overflow: hidden; }
.reel::before { content: ""; position: absolute; top: 12px; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff 55%, rgb(255 255 255 / 40%) 55%); }
.reel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgb(255 255 255 / 85%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23111214'/%3E%3C/svg%3E") center / 26px no-repeat; }
.post { top: 90px; left: 0; width: 170px; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.post i { display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--soft); }
.post i:first-child { width: 60%; margin: 0; }
.post b { display: block; height: 86px; margin-top: 10px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, #fff), color-mix(in srgb, var(--accent) 70%, #ff8fb1)); }
.member { top: 250px; left: 160px; width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--accent); background: radial-gradient(circle at 50% 38%, #f2d3b6 0 22%, transparent 23%), radial-gradient(circle at 50% 100%, #3a4a8c 0 42%, transparent 43%), #dfe7ff; }
.chip { top: 220px; left: 270px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 750; font-size: 13px; white-space: nowrap; }
.emoji { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); font-size: 28px; }
.e1 { top: 30px; left: 40px; }
.e2 { top: 270px; left: 285px; background: #f02849; font-size: 24px; }

.form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.panel { width: 100%; max-width: 536px; }
.back { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: -6px 0 18px -8px; border-radius: 50%; color: var(--text-2); text-decoration: none; }
.back:hover { background: var(--soft); }
h1 { margin: 0 0 16px; font-size: 17px; font-weight: 650; }
.solo h1 { margin-bottom: 4px; font-size: 24px; font-weight: 700; }
.lead { margin: 0 0 18px; color: var(--text); }
.msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--soft); }
.msg.error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.field { position: relative; display: block; margin-bottom: 12px; }
.field input { width: 100%; height: 60px; padding: 24px 16px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; outline: none; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.field span { position: absolute; left: 17px; top: 19px; color: var(--text-2); font-size: 16px; pointer-events: none; transition: top 0.12s, font-size 0.12s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span { top: 9px; font-size: 12px; }
.field.pw input { padding-right: 52px; }
.eye { position: absolute; right: 8px; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.eye:hover { background: var(--soft); }
.eye[aria-pressed="true"] { color: var(--accent-text); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 12px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(0.95); }
.btn.outline { margin-top: 0; border: 1px solid var(--accent); background: transparent; color: var(--accent-text); }
.link { display: block; margin: 18px 0 0; text-align: center; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.join { margin-top: 56px; }
.small { margin: 10px 0 0; color: var(--text-2); font-size: 13px; }
.foot { margin-top: 26px; text-align: center; color: var(--text-2); font-size: 13px; }

/* Forgot / reset: a single centered column, like Facebook's "Find your account". */
.solo-page { min-height: 100vh; padding: 28px 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, var(--bg)), var(--bg) 45%, color-mix(in srgb, var(--accent) 5%, var(--bg))); }
.solo { max-width: 600px; margin: 0 auto; }

@media (max-width: 900px) {
	.page { grid-template-columns: 1fr; }
	/* Only the logo shows here on phones, so the panel shrinks to it instead of filling a whole screen. */
	.brand-side { height: auto; min-height: 0; border-right: 0; padding: 28px 24px 0; align-items: center; }
	.stage, .tagline { display: none; }
	.form-side { align-items: flex-start; padding-top: 24px; }
	h1 { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .field span { transition: none; } }

/* Sign-up */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.birthday { display: flex; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; }
.birthday legend { margin-bottom: 6px; color: var(--text-2); font-size: 13px; }
.birthday select { flex: 1; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small a { color: var(--accent-text); }
.solo { position: relative; }
/* The logo in the corner of the one-column pages (not ".small", which is the help-text style). */
.logo.logo-corner { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
