/* Strona logowania – Tęczowe Siedlisko. Paleta zgodna z motywem (zieleń siedliska + tęcza). */
:root {
	--ink: #1D2A24;
	--muted: #55645C;
	--paper: #FBF8F3;
	--surface: #F1EBE0;
	--line: #D9D0C2;
	--green: #1F5C45;
	--green-dark: #143F2F;
	--terracotta: #A8402C;
	--err-bg: #FBEAE6;
	--ok-bg: #E4F2EA;
	--radius: 14px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

.tl-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

.tl-skip {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: .6em 1em;
	z-index: 10;
}
.tl-skip:focus { left: 0; }

.tl-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 100vh;
}

/* ---------- Panel marki ---------- */
.tl-brand {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 0% 0%, #2A7258 0%, var(--green) 45%, var(--green-dark) 100%);
	color: #F6F1E7;
	display: flex;
	align-items: center;
	padding: clamp(2rem, 6vw, 5rem);
}
.tl-brand__inner { position: relative; z-index: 2; max-width: 30rem; }
.tl-brand__title {
	margin: 2.5rem 0 1rem;
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(2rem, 3.6vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -.01em;
	color: #fff;
}
.tl-brand__lead { margin: 0; font-size: 1.1rem; color: #D7E6DD; max-width: 26rem; }
.tl-arcs {
	position: absolute;
	right: -4%;
	bottom: -6%;
	width: min(70%, 34rem);
	height: auto;
	z-index: 1;
	pointer-events: none;
}

/* ---------- Logo ---------- */
.tl-logo { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.tl-logo__img { display: block; max-height: 56px; width: auto; max-width: 240px; }
.tl-logo__text { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.1; }
.tl-brand .tl-logo { color: #fff; }
.tl-brand .tl-logo__img { max-height: 64px; }
.tl-logo--small { display: none; color: var(--green-dark); margin-bottom: 1.5rem; }

/* ---------- Formularz ---------- */
.tl-main { display: flex; align-items: center; justify-content: center; padding: clamp(1.25rem, 4vw, 3rem); }
.tl-card { width: 100%; max-width: 25rem; }
.tl-title {
	margin: 0 0 1.25rem;
	font-family: var(--serif);
	font-size: clamp(1.75rem, 3vw, 2.2rem);
	line-height: 1.15;
	color: var(--green-dark);
}
.tl-lead { margin: 0 0 1.25rem; color: var(--muted); }

.tl-msg { margin: 0 0 1.25rem; padding: .8rem 1rem; border-radius: 10px; font-size: .97rem; border-left: 4px solid; }
.tl-msg--err { background: var(--err-bg); border-color: var(--terracotta); color: #6E2417; }
.tl-msg--ok { background: var(--ok-bg); border-color: var(--green); color: var(--green-dark); }

.tl-form { display: grid; gap: 1.1rem; }
.tl-field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; }
.tl-input { position: relative; }
.tl-input input {
	width: 100%;
	font: inherit;
	padding: .8rem .95rem;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.tl-input input:hover { border-color: #BDB19E; }
.tl-input input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 92, 69, .16); }
.tl-input input[type="password"], .tl-input input[data-shown] { padding-right: 4.8rem; }
.tl-eye {
	position: absolute;
	right: .35rem;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: var(--green);
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	padding: .45rem .65rem;
	border-radius: 8px;
	cursor: pointer;
}
.tl-eye:hover { background: var(--surface); }

.tl-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.tl-check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.tl-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }

a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-dark); }

.tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .85rem 1.4rem;
	border: 0;
	border-radius: 10px;
	background: var(--green);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, transform .05s;
}
.tl-btn:hover { background: var(--green-dark); color: #fff; }
.tl-btn:active { transform: translateY(1px); }
.tl-btn--wide { width: 100%; }
.tl-btn--google { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.tl-btn--google:hover { background: var(--surface); color: var(--ink); }

.tl-or { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--muted); font-size: .88rem; }
.tl-or::before, .tl-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.tl-alt, .tl-foot { margin: 1.5rem 0 0; font-size: .95rem; color: var(--muted); }
.tl-foot { padding-top: 1.25rem; border-top: 1px solid var(--line); }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
.tl-input input:focus-visible { outline: none; }

/* ---------- Mały ekran ---------- */
@media (max-width: 860px) {
	.tl-shell { grid-template-columns: 1fr; }
	.tl-brand { padding: 1.4rem 1.4rem 1.2rem; min-height: 0; }
	.tl-brand__title, .tl-brand__lead { display: none; }
	.tl-brand .tl-logo { color: #fff; }
	.tl-arcs { width: 14rem; right: -3rem; bottom: -5rem; opacity: .9; }
	.tl-main { align-items: flex-start; padding-top: 2rem; }
	.tl-logo--small { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
