﻿:root {
	--blue-900: #16325c;
	--blue-700: #2c5aa0;
	--blue-600: #3b6fbd;
	--text: #1f2937;
	--muted: #6b7280;
	--border: #d1d5db;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	min-height: 100%;
}

body {
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	font-size: 15px;
	color: var(--text);
	background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, #6b96c7 100%) fixed !important;
}

.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.login-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.login-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.login-logo { display: block; margin: 0 auto; width: 300px; max-width: 100%; height: auto; }

.login-card h2 {
	margin: 0 0 6px;
	font-size: 20px;
}

.login-hint {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.45;
}

.field { margin-bottom: 16px; }

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.field input {
	width: 100%;
	padding: 11px 12px;
	font: inherit;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.field input:focus {
	outline: none;
	border-color: var(--blue-600);
	box-shadow: 0 0 0 3px rgba(59, 111, 189, .25);
}

.pin-input {
	font-size: 26px !important;
	letter-spacing: 8px;
	text-align: center;
}

.btn {
	display: block;
	width: 100%;
	padding: 12px;
	font: inherit;
	font-weight: 600;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-900); }

.btn-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 13px;
	color: var(--blue-700);
	text-decoration: underline;
	cursor: pointer;
}

.login-links {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
}

.alert {
	margin-bottom: 18px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
}

.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #dbeafe; color: #1e40af; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-close   { background: #fee2e2; color: #991b1b; font-weight: 700; text-align: center; font-size: 18px; }

.login-footer {
	margin: 24px 0 0;
	font-size: 12px;
	color: var(--muted);
	text-align: center;
}

.login-footer a { color: var(--blue-700); }
