.auth-page {
	min-height: 100vh;
	color: #2c3748;
	background: linear-gradient(180deg, #fff 0%, #f7fbf7 100%);
	font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

.auth-header {
	width: min(1180px, calc(100% - 48px));
	min-height: 78px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	border-bottom: 1px solid #e1e9e3;
}

.auth-header img {
	display: block;
	width: 150px;
	height: auto;
}

.auth-header p {
	justify-self: end;
	margin: 0;
	color: #617067;
	font-size: 0.9rem;
}

.auth-header p a {
	color: #448f3f;
	font-weight: 600;
	text-decoration: none;
}

.auth-back {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 7px;
	color: #56675d;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.auth-back svg {
	width: 17px;
	height: 17px;
}

.auth-layout {
	width: min(980px, calc(100% - 48px));
	margin: 0 auto;
	padding: 68px 0 90px;
	display: grid;
	grid-template-columns: 1fr 0.92fr;
	align-items: stretch;
}

.auth-register-layout {
	width: min(1120px, calc(100% - 48px));
	grid-template-columns: 0.76fr 1.24fr;
	gap: clamp(46px, 7vw, 92px);
}

.login-card,
.profile-panel,
.form-card {
	padding: clamp(30px, 5vw, 52px);
}

.login-card {
	border: 1px solid #dfe8df;
	border-radius: 26px 0 0 26px;
	background: #fff;
	box-shadow: 0 28px 70px rgb(44 55 72 / 9%);
}

.profile-panel {
	border: 1px solid #dfe8df;
	border-left: 0;
	border-radius: 0 26px 26px 0;
	background: #f7fbf7;
}

.form-card {
	min-height: 430px;
	border: 1px solid #dce6df;
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 28px 70px rgb(32 67 45 / 10%);
}

.auth-intro {
	padding-top: 34px;
}

.auth-eyebrow,
.panel-label {
	margin: 0 0 14px;
	color: #4f9f49;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.login-card h1,
.auth-intro h1 {
	margin: 12px 0 0;
	color: #2c3748;
	font-size: clamp(2.1rem, 4vw, 3rem);
	line-height: 1.2;
	font-weight: 600;
}

.auth-intro h1 {
	max-width: 470px;
	margin: 0;
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.auth-lead,
.auth-intro > p:not(.auth-eyebrow) {
	margin: 17px 0 0;
	color: #475569;
	line-height: 1.6;
	font-size: 1.05rem;
}

.auth-alert {
	margin: 0 0 18px;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 0.92rem;
	line-height: 1.45;
}

.auth-alert-error {
	color: #7a2d26;
	background: #fcedea;
	border: 1px solid #f0c7c1;
}

.auth-alert-ok {
	color: #22623d;
	background: #eaf5ee;
	border: 1px solid #c7e4d2;
}

.auth-form {
	margin-top: 28px;
	display: grid;
	gap: 16px;
}

.auth-field {
	display: grid;
	gap: 8px;
}

.auth-field label {
	color: #506158;
	font-size: 0.86rem;
	font-weight: 600;
}

.auth-field input {
	width: 100%;
	min-height: 46px;
	border: 1px solid #c7d8ce;
	border-radius: 10px;
	padding: 0 14px;
	color: #2c3748;
	background: #fff;
	font: inherit;
}

.auth-field input:focus {
	outline: 3px solid #315d46;
	outline-offset: 2px;
}

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

.auth-label-row a {
	color: #448f3f;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.auth-password {
	position: relative;
}

.auth-password input {
	padding-right: 46px;
}

.auth-password button {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 35px;
	height: 35px;
	display: grid;
	place-items: center;
	border: 0;
	color: #738078;
	background: transparent;
	transform: translateY(-50%);
	cursor: pointer;
}

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

.auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #506158;
	font-size: 0.9rem;
}

.auth-submit,
.auth-google,
.account-card {
	font: inherit;
}

.auth-submit {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 10px;
	padding: 0 18px;
	color: #173b22;
	background: #62b55a;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.auth-submit:hover {
	background: #75c16e;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #7a877f;
	font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e1e9e3;
}

.google-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.auth-google {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #d7e3dc;
	border-radius: 10px;
	padding: 0 12px;
	color: #2c3748;
	background: #fff;
	font-weight: 600;
	text-decoration: none;
}

.auth-google:hover {
	border-color: #8dca88;
	background: #f8fcf8;
}

.auth-extra {
	display: grid;
	gap: 8px;
	margin-top: 6px;
}

.auth-extra a {
	color: #448f3f;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.profile-panel h2,
.form-heading h2 {
	margin: 8px 0 22px;
	color: #2c3748;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.25;
	font-weight: 600;
}

.role-list,
.account-grid {
	display: grid;
	gap: 10px;
}

.role-item,
.account-card {
	display: grid;
	grid-template-columns: 42px 1fr;
	align-items: center;
	gap: 12px;
	border: 1px solid #dbe7dc;
	border-radius: 13px;
	padding: 14px;
	color: #2c3748;
	background: #fff;
	text-decoration: none;
	text-align: left;
}

.account-card {
	grid-template-columns: 48px 1fr 24px;
	width: 100%;
	cursor: pointer;
}

.account-card:hover,
.role-item:hover {
	border-color: #8dca88;
	background: #fbfefb;
}

.role-item span,
.account-card > span:first-child {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	color: #4da747;
	background: #eaf6ea;
}

.role-item small,
.account-card p {
	display: block;
	margin: 3px 0 0;
	color: #64748b;
	line-height: 1.4;
	font-size: 0.88rem;
}

.ownership {
	margin-top: 28px;
	display: flex;
	gap: 14px;
	border: 1px solid #dce9df;
	border-radius: 18px;
	padding: 18px;
	background: rgb(255 255 255 / 72%);
}

.ownership svg {
	width: 22px;
	height: 22px;
	color: #62b55a;
	flex: 0 0 auto;
}

.ownership span {
	display: block;
	margin-top: 5px;
	color: #68776e;
	font-size: 0.88rem;
	line-height: 1.45;
}

.form-heading > span {
	color: #62a65d;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.form-heading p {
	margin: 8px 0 0;
	color: #6c7a71;
	line-height: 1.5;
}

.account-grid {
	margin-top: 28px;
}

.auth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.auth-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #5f6f65;
	font-size: 0.88rem;
	line-height: 1.45;
}

.auth-consent a {
	color: #448f3f;
	font-weight: 600;
}

.password-strength {
	height: 6px;
	border-radius: 999px;
	background: #e6eee8;
	overflow: hidden;
}

.password-strength::after {
	content: "";
	display: block;
	height: 100%;
	width: 0;
	background: #c7d8ce;
	transition: width 160ms ease, background 160ms ease;
}

.password-strength.weak::after {
	width: 35%;
	background: #b23a2e;
}

.password-strength.medium::after {
	width: 65%;
	background: #8a5a00;
}

.password-strength.strong::after {
	width: 100%;
	background: #22623d;
}

.turnstile-container {
	min-height: 65px;
}

.icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 820px) {
	.auth-layout,
	.auth-register-layout {
		grid-template-columns: 1fr;
		padding-top: 34px;
		gap: 0;
	}

	.login-card {
		border-radius: 22px 22px 0 0;
	}

	.profile-panel {
		border-left: 1px solid #dfe8df;
		border-radius: 0 0 22px 22px;
	}

	.auth-intro {
		padding-top: 10px;
	}

	.ownership {
		display: none;
	}
}

@media (max-width: 600px) {
	.auth-header,
	.auth-layout,
	.auth-register-layout {
		width: calc(100% - 28px);
	}

	.auth-header {
		min-height: 68px;
		grid-template-columns: 1fr auto;
	}

	.auth-header > a:nth-child(2) {
		justify-self: end;
	}

	.auth-header p {
		display: none;
	}

	.login-card,
	.profile-panel,
	.form-card {
		padding: 24px 18px;
	}

	.google-row,
	.auth-grid {
		grid-template-columns: 1fr;
	}
}
