/* ============================================================
   egzaminylotnicze.pl — style logowania / rejestracji
   ============================================================ */

:root {
	--navy-950: #0b1420;
	--navy-900: #101e30;
	--navy-800: #17293f;
	--navy-700: #223a54;
	--paper: #e8e6dd;
	--paper-dim: #dedbce;
	--paper-line: #c9c6b8;
	--ink: #14202c;
	--ink-soft: #4b5a68;
	--amber: #d98e2b;
	--amber-dark: #b87418;
	--danger: #c1443b;
	--font-head: 'Space Grotesk', sans-serif;
	--font-body: 'IBM Plex Sans', sans-serif;
}

* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
	max-width: 100%;
	overflow-x: hidden;
}

body.auth-page {
	font-family: var(--font-body);
	color: var(--ink);
	min-height: 100vh;
	display: flex;
}

.auth-shell {
	display: flex;
	width: 100%;
	min-height: 100vh;
}

button {
	font-family: inherit;
	cursor: pointer;
}
input {
	font-family: inherit;
}

/* ---------- lewa kolumna: identyfikacja marki ---------- */
.auth-left {
	flex: 1.1;
	background: radial-gradient(ellipse at 30% 20%, #1b2e45 0%, transparent 55%), var(--navy-950);
	color: var(--paper);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 56px;
	position: relative;
	overflow: hidden;
}

.wordmark {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 20px;
	color: var(--paper);
	text-decoration: none;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 2;
}
.wordmark .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 8px var(--amber);
}

.horizon-wrap {
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translate(-50%, -46%);
	width: 520px;
	height: 520px;
	pointer-events: none;
}

.auth-left .headline {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 44px;
	line-height: 1.12;
	max-width: 480px;
	position: relative;
	z-index: 2;
}
.auth-left .headline em {
	font-style: normal;
	color: var(--amber);
}

.auth-left .sub {
	font-size: 15px;
	color: #93a3b5;
	max-width: 400px;
	margin-top: 18px;
	position: relative;
	z-index: 2;
}

.auth-left .foot-note {
	font-size: 12.5px;
	color: #546679;
	position: relative;
	z-index: 2;
}

/* ---------- prawa kolumna: formularz ---------- */
.auth-right {
	flex: 1;
	background: var(--bg, var(--paper));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.auth-card {
	width: 100%;
	max-width: 380px;
}

.auth-tabs {
	display: flex;
	border-bottom: 1px solid var(--paper-line);
	margin-bottom: 28px;
}
.auth-tab {
	background: none;
	border: none;
	padding: 10px 4px 14px 4px;
	margin-right: 28px;
	font-size: 14.5px;
	color: var(--ink-soft);
	border-bottom: 2px solid transparent;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
}
.auth-tab.active {
	color: var(--ink);
	border-bottom-color: var(--amber);
}

.auth-error {
	background: var(--tint-red, #fcf1f0);
	border: 1px solid var(--danger);
	color: var(--danger);
	font-size: 13.5px;
	padding: 11px 14px;
	margin-bottom: 20px;
}

.auth-success {
	background: var(--tint-teal, #f1faf7);
	border: 1px solid #3fa796;
	color: var(--ink-teal, #1f5b4e);
	font-size: 13.5px;
	padding: 11px 14px;
	margin-bottom: 20px;
}

.field {
	margin-bottom: 18px;
}
.field label {
	display: block;
	font-size: 12.5px;
	color: var(--ink-soft);
	margin-bottom: 6px;
}
.field input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--paper-line);
	background: var(--surface, #fff);
	border-radius: 3px;
	font-size: 14.5px;
	color: var(--ink);
}
.field input:focus {
	outline: 2px solid var(--amber-dark);
	outline-offset: 1px;
}
.field-hint {
	font-size: 12px;
	color: var(--ink-soft);
	margin-top: 6px;
}

.pw-strength {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}
.pw-strength.is-hidden {
	display: none;
}
.pw-strength-bar {
	flex: 1;
	height: 4px;
	background: var(--paper-line, #e0ddd2);
	border-radius: 2px;
	overflow: hidden;
}
.pw-strength-bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 2px;
	transition: width 0.15s, background-color 0.15s;
	background: var(--danger);
}
.pw-strength-bar span.level-weak {
	background: var(--danger);
}
.pw-strength-bar span.level-medium {
	background: var(--amber-dark, #b87418);
}
.pw-strength-bar span.level-strong {
	background: #3fa796;
}
.pw-strength-label {
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}
.pw-strength-label.level-weak {
	color: var(--danger);
}
.pw-strength-label.level-medium {
	color: var(--amber-dark, #b87418);
}
.pw-strength-label.level-strong {
	color: #3fa796;
}

.field.has-error input {
	border-color: var(--danger);
	background: var(--tint-red, #fffbfa);
}
.field-error {
	font-size: 12px;
	color: var(--danger);
	margin-top: 6px;
	display: none;
}
.field.has-error .field-error {
	display: block;
}

.field.has-success input {
	border-color: #3fa796;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 3px;
	border: none;
	font-size: 14.5px;
	font-weight: 600;
	font-family: var(--font-body);
}
.btn-primary {
	background: var(--solid, var(--navy-950));
	color: var(--paper);
	width: 100%;
}
.btn-primary:hover {
	background: var(--solid-hover, var(--navy-800));
}

.auth-fine {
	font-size: 12px;
	color: var(--ink-soft);
	margin-top: 16px;
	text-align: center;
}
.auth-fine a {
	color: var(--ink);
}

/* ---------- responsywność ---------- */
@media (max-width: 860px) {
	.auth-shell {
		flex-direction: column;
	}
	.auth-left {
		flex: none;
		padding: 32px;
		min-height: 220px;
		justify-content: center;
		align-items: flex-start;
	}
	.horizon-wrap {
		display: none;
	}
	.auth-left .headline {
		font-size: 28px;
	}
	.auth-left .sub,
	.auth-left .perks {
		display: none;
	}
	.auth-left .foot-note {
		display: none;
	}
	.auth-right {
		padding: 32px 24px;
	}
}

/* ---------- accessibility: focus visibile wszędzie ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--amber-dark);
	outline-offset: 2px;
}

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

.auth-left .perks {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	font-size: 14px;
	color: #c9d3de;
	position: relative;
	z-index: 2;
}
.auth-left .perks li {
	padding: 4px 0 4px 22px;
	position: relative;
}
.auth-left .perks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 14px;
	height: 14px;
	color: var(--teal, #3fa796);
	background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.field label a {
	color: var(--ink);
	text-decoration: underline;
}
.auth-trialnote {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: var(--ink-soft);
	text-align: center;
}

/* zaproszenie od kolegi z kursu (register.php?zaproszenie=KOD, wzrost/growth.php) */
.auth-invite {
	border: 1px solid var(--paper-line, #c9c6b8);
	border-left: 4px solid #3fa796;
	background: var(--surface, #fff);
	padding: 12px 14px;
	font-size: 13.5px;
	line-height: 1.5;
	margin-bottom: 18px;
	color: var(--ink-soft, #4b5a68);
}
.auth-invite b {
	color: var(--ink, #14202c);
}
