@charset "UTF-8";

:root {
	--bg: #f4f6f8;
	--surface: #ffffff;
	--surface-soft: #f9fafb;
	--text: #1f2937;
	--text-muted: #6b7280;
	--border: #d9dee5;
	--accent: #111827;
	--accent-hover: #374151;
	--danger: #b91c1c;
	
	--radius: 14px;
	--shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

html, body {
	font-family: Inter, Arial, Helvetica, sans-serif;
	line-height: 1.2;
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body {
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
}

main {
	width: min(1200px, calc(100% - 40px));
	margin: 0 auto;
	padding: 48px 0 70px;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	display: block;
}

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.site-header-inner {
	width: min(1100px, calc(100% - 40px));
	margin: 0 auto;
	min-height: 72px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-title {
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-nav a {
	text-decoration: none;
	color: var(--text-muted);
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 8px;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.site-nav a:hover {
	background: var(--surface-soft);
	color: var(--text);
}

.page-heading {
	margin-bottom: 28px;
}

.page-heading h1 {
	margin: 0 0 8px;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.page-heading p {
	margin: 0;
	color: var(--text-muted);
	font-size: 17px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0 0 8px;
}

.page-heading p {
    margin: 0;
    color: var(--text-muted);
}

.logout-form {
    margin: 0;
    flex-shrink: 0;
}

.logout-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.logout-button:hover {
    color: var(--text);
    text-decoration: underline;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	border: 0;
	border-radius: 10px;
	padding: 12px 18px;

	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;

	background: var(--accent);
	color: #ffffff;

	transition:
		background 0.2s ease,
		transform 0.1s ease;
}

.button:hover {
	background: var(--accent-hover);
}

.button:active {
	transform: translateY(1px);
}

.button-secondary {
	background: #ffffff;
	color: var(--text);
	border: 1px solid var(--border);
}

.button-secondary:hover {
	background: var(--surface-soft);
}

.form-message {
	padding: 14px 16px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.form-message.error {
	background: #fef2f2;
	color: var(--danger);
	border: 1px solid #fecaca;
}

.form-message.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

@media (max-width: 700px) {

	.site-header-inner {
		width: min(100% - 24px, 1100px);
	}

	main {
		width: min(100% - 24px, 1100px);
		padding-top: 32px;
	}

	.site-header-inner {
		min-height: 64px;
	}

}