/* ============================================================
   Violix Login – Split-screen professional layout
   ============================================================ */

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

html, body {
	height: 100%;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	overflow: hidden;
}

/* ── Outer wrapper ── */
.page {
	display: flex;
	flex-direction: row;
	height: 100vh;
	width: 100%;
}

/* ── Left panel: background photo ── */
.bg-photo {
	flex: 1 1 0;
	position: relative;
	background: url('../img/loginbackground.jpg') center / cover no-repeat;
	overflow: hidden;
}

/* Dark gradient overlay */
.bg-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(15,23,42,.60) 0%, rgba(37,99,235,.40) 100%);
}

/* Branding text bottom-left of photo */
.photo-brand {
	position: absolute;
	z-index: 2;
	bottom: 48px;
	left: 48px;
	color: rgba(255,255,255,.95);
}

.photo-brand-name {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1;
	margin-bottom: 8px;
	text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.photo-brand-sub {
	font-size: 15px;
	color: rgba(255,255,255,.65);
	font-weight: 400;
}

/* Decorative badge bottom-right of photo */
.photo-badge {
	position: absolute;
	z-index: 2;
	bottom: 48px;
	right: 48px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 100px;
	padding: 10px 18px 10px 12px;
	color: rgba(255,255,255,.9);
	font-size: 13px;
	font-weight: 500;
}

.photo-badge i {
	font-size: 16px;
	opacity: .8;
}

/* ── Right panel: login card ── */
.card {
	flex: 0 0 460px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 56px 0;
	background: #ffffff;
	position: relative;
	overflow-y: auto;
}

/* Subtle left border accent */
.card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 20%;
	bottom: 20%;
	width: 3px;
	background: linear-gradient(180deg, transparent, #2563eb 40%, #7c3aed 60%, transparent);
	border-radius: 0 2px 2px 0;
	opacity: .35;
}

/* App icon at top of card */
.card__logo {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 32px;
	box-shadow: 0 8px 20px rgba(37,99,235,.3);
}

.card__logo i {
	color: #fff;
	font-size: 22px;
}

.card__header {
	margin-bottom: 8px;
	color: #0f172a;
	font-weight: 800;
	font-size: 26px;
	letter-spacing: -.03em;
}

.card__subheader {
	margin-bottom: 36px;
	color: #64748b;
	font-size: 14px;
	font-weight: 400;
}

/* ── Form ── */
.form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); border: 0;
}

/* Floating label field */
.field {
	position: relative;
}

.field input {
	width: 100%;
	padding: 20px 44px 8px 16px;
	border-radius: 12px;
	border: 1.5px solid #e2e8f0;
	background: #f8fafc;
	font-size: 15px;
	color: #0f172a;
	outline: none;
	transition: border-color .2s, background .2s, box-shadow .2s;
	font-family: inherit;
}

.field input::placeholder { color: transparent; }

.field label {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: #94a3b8;
	pointer-events: none;
	transition: all .18s ease;
}

.field input:focus {
	border-color: #2563eb;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
	top: 10px;
	transform: translateY(0);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #2563eb;
}

/* Password toggle */
.reveal {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}

.reveal:hover { background: #f1f5f9; }
.reveal i { color: #94a3b8; font-size: 15px; }
.reveal.is-on i { color: #2563eb; }

/* Row (wachtwoord vergeten) */
.row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

.checkbox { display: none; }

.link {
	font-size: 13px;
	color: #64748b;
	text-decoration: none;
	transition: color .15s;
}

.link:hover { color: #2563eb; }

/* Inlogknop */
.btn {
	display: block;
	width: 100%;
	padding: 16px;
	border-radius: 12px;
	border: none;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.01em;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: box-shadow .2s, transform .15s;
	box-shadow: 0 4px 14px rgba(37,99,235,.35);
	margin-top: 4px;
}

.btn:hover {
	box-shadow: 0 8px 24px rgba(37,99,235,.45);
	transform: translateY(-1px);
	color: #ffffff;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	text-decoration: none;
}

.btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(37,99,235,.25); }

/* Error */
.error-msg {
	padding: 12px 16px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #b91c1c;
	font-size: 14px;
	font-weight: 500;
}

.info-msg {
	padding: 12px 16px;
	border-radius: 10px;
	background: #eff6ff;
	border: 1px solid #93c5fd;
	color: #1e40af;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
}

/* ── Footer (inside .card) ── */
.footer {
	margin-top: auto;
	padding: 20px 0 24px;
	font-size: 12px;
	color: #cbd5e1;
	text-align: center;
	border-top: 1px solid #f1f5f9;
}

.footer a, .footer a:hover, .footer a:visited {
	color: #cbd5e1;
	text-decoration: none;
}

/* ── Responsive: tablet / mobile ── */
@media (max-width: 900px) {
	html, body { overflow: auto; }

	.page {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}

	.bg-photo {
		flex: none;
		height: 220px;
	}

	.photo-badge { display: none; }
	.photo-brand { bottom: 20px; left: 24px; }
	.photo-brand-name { font-size: 22px; }

	.card {
		flex: none;
		width: 100%;
		padding: 40px 28px 80px;
	}

	.card::before { display: none; }

	.footer {
		position: static;
		padding: 16px 28px;
	}
}
