:root {
	--primary: #1f2937;
	--secondary: #374151;
	--accent: #2563eb;
	--error: #dc2626;
	--bg: #f3f4f6;
}

* {
	box-sizing: border-box;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--primary);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* HEADER */
header {
	padding: 32px 16px;
	text-align: center;
}

header p {
	margin: 8px 0 0;
	color: var(--secondary);
	font-size: 18px;
}

.header-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-bottom: 8px;
}

.header-logos img {
	max-height: 180px;
	width: auto;
}

.economat-logo {
	display: flex;
	align-items: baseline;
	letter-spacing: 0.5px;
}

.economat-logo .dot {
	font-size: 36px;
	margin-right: 2px;
	color: var(--secondary);
}

.economat-logo .e {
	font-family: 'Caveat', cursive;
	font-size: 82px;
	color: var(--accent);
	transform: rotate(-4deg);
	line-height: 1;
}

.economat-logo .text {
	font-size: 40px;
	margin-left: 4px;
	font-weight: 600;
}

/* MAIN */
main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.login-box {
	background: #fff;
	padding: 32px;
	width: 100%;
	max-width: 360px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-box h2 {
	margin-top: 0;
	margin-bottom: 12px;
	text-align: center;
}

.demo-note {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 20px;
}

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--secondary);
}

.field input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	font-size: 14px;
}

.field input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

button {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	border: none;
	background: var(--accent);
	color: white;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

button:hover { opacity: 0.9; }

.error {
	margin-top: 16px;
	text-align: center;
	color: var(--error);
	font-size: 14px;
	display: none;
}

footer {
	text-align: center;
	padding: 16px;
	font-size: 13px;
	color: var(--secondary);
}

footer a {
	color: var(--secondary);
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.header-logos {
		flex-direction: column;
		gap: 12px;
	}

	.economat-logo .text {
		font-size: 28px;
	}
}
