* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	font-family: Inter, Arial, Helvetica, sans-serif;
	background: #f6f7f2;
	color: #111917;
}

body {
	min-height: 100vh;
	min-height: 100dvh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.login-page {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background:
		radial-gradient(circle at 80% 20%, rgba(31, 122, 31, 0.18), transparent 34%),
		linear-gradient(180deg, #fbfcf8 0%, #eef3ec 100%);
}

.login-shell {
	width: 100%;
	max-width: 460px;
}

.login-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 34px;
	text-decoration: none;
}

.login-logo img {
	height: 24px;
	width: auto;
	display: block;
}

.login-card {
	position: relative;
	padding: 42px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(226, 232, 226, 0.9);
	box-shadow:
		0 2px 8px rgba(16, 24, 40, 0.04),
		0 30px 80px rgba(18, 28, 24, 0.12);
	backdrop-filter: blur(18px);
	overflow: hidden;
}

.login-card:before {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(31, 122, 31, 0.1);
}

.eyebrow {
	position: relative;
	margin: 0 0 14px;
	color: #1f7a1f;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1 {
	position: relative;
	margin: 0;
	font-size: 38px;
	line-height: 1;
	letter-spacing: -0.055em;
	color: #111917;
}

.intro {
	position: relative;
	margin: 10px 0 30px;
	color: #5b6763;
	font-size: 16px;
	line-height: 1.7;
}

.error-message {
	position: relative;
	margin: 0 0 18px;
	padding: 13px 15px;
	border-radius: 14px;
	background: #fff4f2;
	border: 1px solid #ffd8d2;
	color: #9d2d20;
	font-size: 14px;
	line-height: 1.5;
}

button {
	position: relative;
	width: 100%;
	height: 56px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(180deg, #238523 0%, #1d6d1d 100%);
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(31, 122, 31, 0.22);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		opacity 0.15s ease;
}

button:hover:not([disabled]) {
	transform: translateY(-1px);
	box-shadow: 0 20px 42px rgba(31, 122, 31, 0.28);
}

button:active:not([disabled]) {
	transform: translateY(1px);
}

button[disabled] {
	cursor: default;
	opacity: 0.5;
	box-shadow: none;
	transform: none;
}

button.bankid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

button.bankid:before {
	content: "";
	width: 26px;
	height: 26px;
	background-color: #ffffff;
	-webkit-mask-image: url("https://assets.cartaro.se/cartaro-assets/static/thirdparty/logotypes/vectors/bankid.svg");
	mask-image: url("https://assets.cartaro.se/cartaro-assets/static/thirdparty/logotypes/vectors/bankid.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	display: block;
}

.divider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 24px 0 20px;
	color: #7a8581;
	font-size: 13px;
}

.divider:before,
.divider:after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e1e5e1;
}

.classic-login-form {
	position: relative;
}

label {
	display: none;
	margin-bottom: 9px;
	font-size: 12px;
	position: absolute;
	top: -8px;
	left: 12px;
	background: #fff;
	padding: 0 7px;
	font-weight: 500;
	color: #555;
}

.classic-login-form:focus-within label {
	display: block;
}

.classic-login-form:focus-within input::placeholder {
	opacity: 0;
}

input {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	border-radius: 16px;
	border: 1px solid #d7ddd7;
	background: #ffffff;
	color: #111917;
	font-size: 16px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
	border-color: #1f7a1f;
}

input.is-valid {
	border-color: rgba(31, 122, 31, 0.7);
}

input.is-invalid {
	border-color: rgba(157, 45, 32, 0.55);
}

.secondary-button {
	margin-top: 18px;
}

.signup {
	position: relative;
	margin: 24px 0 0;
	color: #5b6763;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.auth-note {
	position: relative;
	margin: 22px 0 0;
	color: #7a8581;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

a {
	color: #1f7a1f;
	font-weight: 700;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

@media (max-width: 520px) {
	.login-page {
		padding: 22px;
	}

	.login-card {
		padding: 32px 24px;
		border-radius: 24px;
	}

	h1 {
		font-size: 32px;
	}
}