﻿:root {
	--rust-red: #d23229;
	--rust-green: #425424;
}

* {
	box-sizing: border-box;
	font-family: 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
	margin: 0;
	padding: 0;
}

html {
	scrollbar-gutter: unset;
}

body {
	margin: 0;
	padding: 0;
	background-color: #484a4a;
	background-image: url(/images/bg.webp);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	min-height: 100vh;
	width: 100%;
}

.icon {
	display: inline-flex;
	object-fit: contain;
	color: black;
	background-color: white;
	-webkit-mask: var(--src) no-repeat center / contain;
	mask: var(--src) no-repeat center / contain;
	height: 20px;
	width: 20px;
}

main {
	background: #202020ab;
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 1rem;
}

	main > form {
		width: min(450px, 100%);
		display: grid;
		grid-template-columns: 1fr 70px;
	}

		main > form > span {
			grid-column: 1/-1;
			padding: 10px;
			text-align: center;
			font-weight: bold;
			color: var(--rust-red);
		}


/*#region rust-btn */

.rust-btn {
	border: 0;
	color: white;
	height: 45px;
	background: #1e1e1e;
	padding: 13px;
	font-weight: bold;
	font-size: 13px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	transition: background 300ms;
}

	.rust-btn.active {
		background: var(--rust-green);
	}

		.rust-btn.active:hover {
			filter: brightness(1.15);
		}

	.rust-btn:not(.active):hover {
		background: #2c2c2d;
	}

	.rust-btn > .icon {
		min-height: 20px;
		min-width: 20px;
		background-color: #827d78;
	}

	.rust-btn.active > .icon {
		background-color: white;
	}
/*#endregion */

/*#region rust-input */

.rust-input {
	position: relative;
	--color: #a2a2a2;
}

	.rust-input > input {
		width: 100%;
		background: #222222;
		border: none;
		outline: none;
		color: var(--color);
		padding-inline: 14px;
		height: 45px;
		font-size: 12px;
		font-weight: bold;
	}

	.rust-input > .icon {
		position: absolute;
		right: 14px;
		top: 50%;
		transform: translateY(-50%);
		height: 14px;
		background: var(--color);
	}

/*#endregion */