@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
	--ink: #16201c;
	--ink-soft: #5b6b63;
	--paper: #f4f2ec;
	--surface: #ffffff;
	--line: #d8d6cd;
	--accent: #1d6e56;
	--accent-soft: #e1f0ea;
	--danger: #9a3327;
	--radius: 10px;
	--mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--sans);
	color: var(--ink);
	background: var(--paper);
	background-image: radial-gradient(var(--line) 0.5px, transparent 0.5px);
	background-size: 22px 22px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: 560px;
	margin: 0 auto;
	padding: 48px 20px 64px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--ink);
}

.brand .mark {
	color: var(--accent);
}

.brand em {
	font-style: normal;
	color: var(--ink-soft);
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: 0 1px 0 rgba(22, 32, 28, 0.03);
}

h1 {
	font-size: 21px;
	font-weight: 600;
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 4px;
}

.muted {
	color: var(--ink-soft);
}

.small {
	font-size: 13px;
}

.stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 18px;
}

label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
}

label.check {
	flex-direction: row;
	align-items: center;
	gap: 9px;
	font-weight: 400;
}

input[type="text"],
input[type="password"],
textarea,
select {
	font-family: var(--mono);
	font-size: 14px;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 11px 12px;
	width: 100%;
	transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
	resize: vertical;
	line-height: 1.5;
}

input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--accent);
}

.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: end;
}

button {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	padding: 11px 16px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

button.primary {
	background: var(--accent);
	color: #fff;
}

button.primary:hover {
	background: #185a47;
}

button.primary:disabled {
	opacity: 0.6;
	cursor: default;
}

button.ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}

button.ghost:hover {
	border-color: var(--ink-soft);
}

.row-between {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.linkbox {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.linkbox input,
.linkbox textarea {
	flex: 1;
}

.linkbox button {
	background: var(--ink);
	color: #fff;
	white-space: nowrap;
}

.linkbox button:hover {
	background: #0c130f;
}

.hint {
	font-size: 13px;
	color: var(--ink-soft);
	margin-top: 6px;
}

.hint code {
	font-family: var(--mono);
	background: var(--paper);
	padding: 1px 5px;
	border-radius: 4px;
}

.error {
	color: var(--danger);
	font-size: 13px;
	font-weight: 500;
}

.hidden {
	display: none;
}

.foot {
	text-align: center;
	font-family: var(--mono);
	letter-spacing: 0.02em;
}

@media (max-width: 480px) {
	.wrap {
		padding: 32px 14px 48px;
	}
	.card {
		padding: 22px;
	}
	.grid-2 {
		grid-template-columns: 1fr;
	}
}
