@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&family=Special+Elite&display=swap");

:root {
	--ink: #211e1e;
	--paper: #fffdf0;
	--red: #ef3336;
	--mint: #49c9b5;
	--line: #c9c4b8;
}
* {
	box-sizing: border-box;
}
html,
body {
	min-height: 100%;
	margin: 0;
}
body {
	min-height: 100vh;
	background: #b99a79 url("../../xmassBG.jpg") center / cover fixed no-repeat;
	color: var(--ink);
	font-family: "Apercu Mono Pro", monospace;
	font-size: 12px;
	font-weight: 400;
}

.login-card {
	position: absolute;
	top: 53%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: min(90%, 380px);
	min-height: 400px; /* Adjust this value */
	background: var(--paper);
	border-top: 4px solid var(--mint);
	border-radius: 3px;
	box-shadow:
		0 14px 32px rgba(31, 22, 15, 0.3),
		0 2px 4px rgba(0, 0, 0, 0.16);
	overflow: hidden;
}
.card-header {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 100px;
	padding: 22px 26px;
	background: var(--ink);
	color: #fffdf5;
	font-family: "Apercu Mono Pro Bold", monospace !important;
}
.brand-mark {
	position: relative;
	flex: 0 0 42px;
	width: 42px;
	height: 48px;
	background: var(--red);
	border-radius: 5px 12px 3px 5px;
	clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%);
}
.brand-mark::before {
	content: "";
	position: absolute;
	width: 23px;
	height: 23px;
	top: 11px;
	left: 8px;
	border-radius: 50%;
	background: var(--ink);
}
.brand-mark::after {
	content: "";
	position: absolute;
	width: 17px;
	height: 6px;
	top: 31px;
	left: 22px;
	transform: rotate(45deg);
	border-radius: 2px;
	background: var(--ink);
}
.brand-copy {
	min-width: 0;
}
.brand-copy h1 {
	margin: 0 0 7px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(15px, 2vw, 20px);
	line-height: 1.2;
	letter-spacing: 0.07em;
	white-space: nowrap;
}
.brand-copy p {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(11px, 1.5vw, 15px);
	letter-spacing: 0.035em;
}
.card-content {
	padding: 26px 30px 0;
}
.section-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
	color: var(--red);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.09em;
}
.section-heading i {
	height: 1px;
	flex: 1;
	background: #d5d0c4;
}
.intro {
	margin: 0 0 18px;
	font-size: 12px;
	line-height: 1.4;
}
.field {
	margin: 0 0 12px;
}
.field label {
	display: block;
	margin: 0 0 7px;
	color: var(--red);
	font-size: 16px;
	letter-spacing: 0.06em;
	font-family: "Apercu Mono Pro Bold", monospace !important;
	font-weight: 700;
}
.field input {
	display: block;
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #66717a;
	border-radius: 6px;
	outline: none;
	background: #e6e7e8;
	color: #252525;
	font:
		13px "Roboto Mono",
		monospace;
	transition:
		border-color 0.18s,
		box-shadow 0.18s;
}
.field input::placeholder {
	color: #8b8b8b;
}
.field input:focus {
	border-color: var(--mint);
	box-shadow: 0 0 0 3px rgba(73, 201, 181, 0.18);
}
.password-wrap {
	position: relative;
}
.password-wrap input {
	padding-right: 44px;
}
.toggle-key {
	position: absolute;
	top: 50%;
	right: 7px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #48545b;
	cursor: pointer;
}
.toggle-key:hover {
	background: rgba(0, 0, 0, 0.06);
}
.toggle-key svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}
.warning {
	margin: 16px 0 12px;
	color: var(--red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.015em;
}
.form-message {
	min-height: 0;
	margin: 0;
	color: #b82125;
	font-size: 11px;
}
.form-message:not(:empty) {
	margin: -5px 0 12px;
}
.submit-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: calc(100% + 60px);
	min-height: 44px;
	margin: 0 -30px;
	padding: 12px 18px;
	border: 0;
	border-radius: 0;
	background: var(--ink);
	color: var(--red);
	font-family: "Apercu Mono Pro Bold", monospace !important;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.07em;
	cursor: pointer;
	transition:
		background 0.18s,
		color 0.18s;
}
.submit-button b {
	font-size: 28px;
	line-height: 0.7;
	font-weight: 400;
}
.submit-button:hover {
	background: #302a2a;
	color: #ff5558;
}
.submit-button:focus-visible,
.toggle-key:focus-visible {
	outline: 2px solid var(--mint);
	outline-offset: -3px;
}
.login-card.has-error {
	outline: 4px solid var(--red);
	animation: shake 0.38s ease-in-out;
}

.login-card.has-error .field input {
	border-color: var(--red);
}

@keyframes shake {
	0%,
	100% {
		transform: translate(-50%, -50%);
	}

	20%,
	60% {
		transform: translate(calc(-50% - 6px), -50%);
	}

	40%,
	80% {
		transform: translate(calc(-50% + 6px), -50%);
	}
}

/* Confidential stamp */
.confidential-stamp {
	position: absolute;
	top: 67%;
	left: 48%;
	transform: translate(-50%, -50%);
	z-index: 5;

	width: 310px;
	height: 95px;

	min-width: 30%;
	min-height: 30%;

	pointer-events: none;

	background-image: url("../../img/xmassTeasers/Teaser1/ConfidentialStamp.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;

	transform: rotate(-7deg);
	transform-origin: center;
	opacity: 0.95;
}

.demo-note {
	position: absolute;
	left: 16px;
	bottom: 10px;
	margin: 0;
	color: rgba(35, 26, 20, 0.58);
	font-size: 9px;
}
@media (min-width: 1100px) {
	.scene {
		padding-top: 8vh;
		padding-left: 4vw;
	}
	.login-card {
		width: 380px;
	}
}
@media (max-width: 650px) {
	.login-card {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);

		width: min(100%, 340px);
		margin: 0 auto;
	}

	.card-header {
		min-height: 72px;
		padding: 12px 16px;
		gap: 10px;
	}

	.card-content {
		padding: 16px 18px 0;
	}

	.submit-button {
		width: calc(100% + 36px);
		margin: 0 -18px;
		min-height: 44px;
		font-size: 13px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
