:root {
	--bg: #f1f5f5;
	--panel: #ffffff;
	--text: #0f172a;
	--muted: #64748b;
	--brand: #0d9488;
	--brand-hover: #0f766e;
	--brand-light: #ccfbf1;
	--border: #e2e8f0;
	--shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
	--shadow-lg: 0 20px 40px -8px rgba(0,0,0,.1), 0 8px 16px -4px rgba(0,0,0,.06);
	--radius: 10px;
	--radius-lg: 14px;
	--radius-xl: 20px;
	--font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--ease: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a1214; --panel: #162022; --text: #e8ecee; --muted: #7e949a;
		--brand: #2dd4bf; --brand-hover: #14b8a6; --brand-light: #122a27;
		--border: #243438; --shadow: 0 1px 3px rgba(0,0,0,.25);
		--shadow-lg: 0 20px 40px rgba(0,0,0,.4);
	}
}

[data-theme="dark"] {
	--bg: #0a1214; --panel: #162022; --text: #e8ecee; --muted: #7e949a;
	--brand: #2dd4bf; --brand-hover: #14b8a6; --brand-light: #122a27;
	--border: #243438; --shadow: 0 1px 3px rgba(0,0,0,.25);
	--shadow-lg: 0 20px 40px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
	background: var(--bg);
	color: var(--text);
	font: 400 15px/1.6 var(--font);
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100dvh;
	-webkit-font-smoothing: antialiased;
}

/* Header */
header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 24px;
}

.logo {
	width: 36px; height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--brand), #0f766e);
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	box-shadow: 0 2px 8px rgba(13,148,136,.3);
}

.brand { font-weight: 800; font-size: 16px; letter-spacing: -.3px; }

/* Main */
.login-main {
	display: grid;
	place-items: center;
	padding: 32px 20px;
}

.login-card {
	width: min(440px, 100%);
	padding: 40px 36px;
	box-shadow: var(--shadow-lg);
	border-radius: var(--radius-xl);
	border: 1px solid var(--border);
	background: var(--panel);
	text-align: center;
	animation: cardIn .4s var(--ease) both;
}

@keyframes cardIn {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-title { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; }
.login-subtitle { color: var(--muted); font-size: .95rem; margin: 0 0 28px; }

/* Buttons */
.btn {
	appearance: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
	border-radius: var(--radius-lg);
	padding: .85rem 1.2rem;
	font-weight: 700;
	font-size: .95rem;
	transition: all .15s var(--ease);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	width: 100%;
}

.btn:active { transform: translateY(1px); }

.btn-google {
	background: var(--panel);
	color: var(--text);
	margin: 0 0 14px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.btn-google:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); border-color: var(--brand); }

.btn-dev {
	background: var(--brand-light);
	color: var(--brand);
	margin: 0 0 14px;
	border: 1px dashed var(--brand);
	font-size: .85rem;
}

.btn-dev:hover { background: var(--brand); color: #fff; }

/* Error messages */
.error { display: block; color: #dc2626; font-weight: 600; font-size: .85rem; margin-top: 12px; }

.no-access {
	color: #dc2626;
	background: #fee2e2;
	border: 1px solid #fecaca;
	border-radius: var(--radius);
	padding: 12px 16px;
	margin-top: 16px;
	font-size: .85rem;
	font-weight: 500;
	text-align: left;
}

/* Footer */
footer {
	padding: 24px 20px;
	color: var(--muted);
	font-size: .85rem;
	border-top: 1px solid var(--border);
	text-align: center;
}

footer a { color: var(--brand); text-decoration: none; }
footer a:hover { text-decoration: underline; }
