/* =====================================================================
   Kanari — sign-in / sign-up pages (split layout)
   Same identity as the landing page: night blue, canary yellow, the arch and the LCD.
   ===================================================================== */
:root {
	--blue: #17468C;
	--night: #0B1B3F;
	--canary: #F5B800;
	--paper: #F6F8FC;
	--ink: #0F1B33;
	--muted: #55627C;
	--line: #DCE3F0;
	--field: #EEF2F9;
	--bad: #C0392B;
	--bad-soft: #FBE5E2;
	--ok: #1F9D55;
	--ok-soft: #E3F5EA;
	--lcd: #B9D84A;
	--lcd-ink: #1C2A0C;
	--display: "Bricolage Grotesque", "Segoe UI", sans-serif;
	--body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--canary); outline-offset: 2px; border-radius: 8px; }

.split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }

/* ---------- brand panel ---------- */
.panel { position: relative; overflow: hidden; color: #fff; padding: 36px 48px; display: flex; flex-direction: column;
	background: radial-gradient(700px 480px at 80% 25%, #1F57AA 0%, transparent 70%), var(--night); }
.panel::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 3px; background: var(--canary); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; align-self: flex-start; }
.logo svg { width: 38px; height: 38px; display: block; }
.logo b { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.panel h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.035em; margin: 48px 0 12px; max-width: 13ch; }
.panel .lead { color: #C9D6F2; margin: 0; max-width: 36ch; }

.arch { position: relative; margin: auto auto 0; width: min(300px, 100%); aspect-ratio: 4 / 5; border-radius: 999px 999px 20px 20px;
	background: linear-gradient(180deg, #2457A6 0%, #17468C 100%); border: 8px solid var(--paper);
	box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); display: flex; align-items: flex-end; padding: 0 18px 20px; translate: 0 36px; }
.arch .studs { position: absolute; inset: 16px 16px auto; height: 50%; border-radius: 999px 999px 0 0; border: 2px dotted rgba(246, 248, 252, .45); border-bottom: 0; }
.arch .bird { position: absolute; top: 18%; left: 50%; width: 42%; transform: translateX(-50%); }
.lcd { width: 100%; background: #13306A; border-radius: 12px; padding: 10px; box-shadow: inset 0 0 0 2px #0A1E47; }
.lcd-screen { background: var(--lcd); border-radius: 5px; padding: 8px 10px; box-shadow: inset 0 0 14px rgba(30, 60, 0, .35);
	font-family: "VT323", "Courier New", monospace; color: var(--lcd-ink); font-size: 22px; line-height: 1.1; letter-spacing: .05em; }
.lcd-screen span { display: block; white-space: pre; overflow: hidden; }
.panel .made { margin-top: 64px; display: flex; align-items: center; gap: 10px; color: #93A8D4; font-size: 14px; position: relative; z-index: 1; }
.panel .made span[lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 22px; font-weight: 700; color: var(--canary); }

/* ---------- form side ---------- */
.side { display: flex; flex-direction: column; padding: 28px 32px; }
.side-top { display: flex; justify-content: flex-end; font-size: 14.5px; color: var(--muted); }
.side-top a { font-weight: 700; margin-left: 6px; }
.form-wrap { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.form-wrap h1 { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.form-wrap .sub { margin: 0 0 28px; color: var(--muted); }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.field input { width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--field);
	border: 2px solid transparent; border-radius: 14px; outline: none; transition: border-color .15s, background .15s; }
.field input:hover { background: #E6ECF7; }
.field input:focus { background: #fff; border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--bad); background: #fff7f6; }
.pass { position: relative; }
.pass input { padding-right: 78px; }
.pass button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; border-radius: 10px;
	background: transparent; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pass button:hover { background: #E6ECF7; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

.btn { width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s; }
.btn:hover { background: var(--night); }
.btn:disabled { opacity: .7; cursor: wait; }

.switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.switch a { font-weight: 700; }
.side-foot { text-align: center; font-size: 13px; color: var(--muted); }
.side-foot a { color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.panel { padding: 18px 20px 22px; }
	.panel::after { inset: auto 0 0 0; width: auto; height: 3px; }
	.panel h2 { font-size: 26px; margin: 20px 0 6px; max-width: none; }
	.panel .lead { font-size: 14.5px; }
	.arch, .panel .made { display: none; }
	.side { padding: 16px 20px 24px; }
	.side-top { display: none; }
	.form-wrap { padding: 20px 0 28px; margin: 0 auto; }
	.form-wrap h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	.field input, .btn { transition: none; }
}

/* ---------- sign-up extras ---------- */
.split.tall .panel { position: sticky; top: 0; height: 100vh; height: 100dvh; }
.split.tall .arch { width: clamp(190px, 22vh, 240px); margin-top: 24px; padding: 0 12px 14px; border-width: 6px; translate: none; }
.split.tall .lcd { padding: 7px; }
.split.tall .lcd-screen { padding: 6px 4px; }
.split.tall .panel .made { margin-top: 20px; }
.split.tall .lcd-screen { font-size: 18px; text-align: center; }
.form-wrap.wide { max-width: 480px; }
.group { margin: 26px 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group:first-of-type { margin-top: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.field small.err { color: var(--bad); font-weight: 600; }
.meter { height: 6px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s, background .2s; }
.check.terms { align-items: flex-start; margin: 6px 0 6px; }
.check.terms input { margin-top: 3px; }
.check.bad { color: var(--bad); }
.terms-err { margin: 0 0 18px 28px; font-size: 13px; color: var(--bad); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.perks li { display: flex; gap: 10px; align-items: flex-start; color: #DCE6FA; font-size: 15px; }
.perks svg { width: 20px; height: 20px; flex: none; color: var(--canary); margin-top: 2px; }
@media (max-width: 900px) {
	.split.tall .panel { position: relative; height: auto; }
	.perks { display: none; }
}
@media (max-width: 480px) {
	.pair { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 901px) and (max-height: 740px) { .split.tall .arch { display: none; } }
@media (prefers-reduced-motion: reduce) { .meter i { transition: none; } }