body {
	padding-top: 0;
	background: #f3f6f8;
}

body[data-bs-theme="dark"] {
	background: #111418;
}

.auth-page {
	min-height: calc(100vh - 96px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px;
}

.auth-shell,
.auth-shell *,
.auth-card,
.auth-card * {
	box-sizing: border-box;
}

.auth-page .material-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	min-width: 1em;
	overflow: hidden;
	white-space: nowrap;
	text-align: center;
	line-height: 1;
	flex-shrink: 0;
}

.auth-shell {
	width: min(960px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(25, 41, 57, .12);
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(25, 41, 57, .14);
}

.auth-shell.auth-shell-wide {
	width: min(1160px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	flex: 0 1 min(1160px, calc(100vw - 32px));
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.auth-shell.auth-shell-wide .auth-brand {
	padding-left: 34px;
	padding-right: 34px;
}

.auth-brand {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	padding: 44px;
	color: #fff;
	background: #183a37;
}

.auth-mark {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 28px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 16px;
	background: rgba(255, 255, 255, .12);
}

.auth-brand h1 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0;
}

.auth-brand p {
	max-width: 360px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, .78);
	font-size: 1rem;
}

.auth-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.auth-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	color: rgba(255, 255, 255, .88);
	background: rgba(255, 255, 255, .08);
	font-size: .9rem;
}

.auth-panel,
.auth-card {
	padding: 44px;
}

.auth-panel {
	min-width: 0;
}

.auth-card {
	width: min(560px, 100%);
	background: #fff;
	border: 1px solid rgba(25, 41, 57, .12);
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(25, 41, 57, .14);
}

.auth-title {
	margin-bottom: 28px;
}

.auth-title h2 {
	margin: 0;
	color: #192939;
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: 0;
}

.auth-title p {
	margin: 8px 0 0;
	color: #657386;
}

.auth-control-group {
	border: 1px solid #d6dde6;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-control-group:focus-within {
	border-color: #287d74;
	box-shadow: 0 0 0 .2rem rgba(40, 125, 116, .14);
}

.auth-control-icon {
	width: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #287d74;
	background: #eef7f5;
	border: 0;
}

.auth-control {
	min-height: 52px;
	border: 0;
	box-shadow: none !important;
}

.auth-control:disabled {
	color: #657386;
	background: #f6f8fa;
	opacity: 1;
}

.auth-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
}

.auth-actions .btn {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	cursor: pointer;
}

.auth-secondary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(25, 41, 57, .1);
}

.auth-consent-list {
	display: grid;
	gap: 12px;
	margin-top: 22px;
}

.auth-consent-item {
	padding: 14px 16px;
	border: 1px solid rgba(25, 41, 57, .12);
	border-radius: 14px;
	background: #f8fafb;
}

.auth-consent-item.form-check {
	padding-left: 3rem;
}

.auth-consent-item .form-check-input {
	margin-left: -1.75rem;
}

.auth-password-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.auth-password-tools .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

.auth-password-meter {
	height: 8px;
	overflow: hidden;
	background: #e8edf2;
	border-radius: 999px;
}

.auth-password-meter-bar {
	width: 0%;
	height: 100%;
	background: #dc3545;
	transition: width .18s ease, background-color .18s ease;
}

.auth-password-meter-bar.is-medium {
	background: #ffc107;
}

.auth-password-meter-bar.is-strong {
	background: #198754;
}

.auth-password-feedback {
	min-height: 20px;
	color: #657386;
}

.auth-password-requirements {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 14px;
	margin-top: 10px;
	padding-left: 0;
	list-style: none;
	font-size: .9rem;
}

.auth-password-requirement {
	color: #657386;
}

.auth-password-requirement::before {
	content: "radio_button_unchecked";
	display: inline-block;
	width: 16px;
	min-width: 16px;
	margin-right: 6px;
	overflow: hidden;
	font-family: "Material Icons";
	font-size: 16px;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	vertical-align: -3px;
}

.auth-password-requirement.is-valid {
	color: #198754;
}

.auth-password-requirement.is-valid::before {
	content: "check_circle";
}

.auth-required {
	color: #c0392b;
}

body[data-bs-theme="dark"] .auth-shell,
body[data-bs-theme="dark"] .auth-card {
	background: #212529;
	border-color: rgba(255, 255, 255, .12);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

body[data-bs-theme="dark"] .auth-brand {
	background: #12322f;
}

body[data-bs-theme="dark"] .auth-title h2,
body[data-bs-theme="dark"] .auth-card h4 {
	color: #fff;
}

body[data-bs-theme="dark"] .auth-title p,
body[data-bs-theme="dark"] .form-label,
body[data-bs-theme="dark"] .form-check-label {
	color: rgba(255, 255, 255, .72);
}

body[data-bs-theme="dark"] .auth-control-group {
	background: #2b3035;
	border-color: rgba(255, 255, 255, .16);
}

body[data-bs-theme="dark"] .auth-control {
	color: #fff;
	background: #2b3035;
}

body[data-bs-theme="dark"] .auth-control:disabled {
	color: rgba(255, 255, 255, .72);
	background: #252a30;
}

body[data-bs-theme="dark"] .auth-control::placeholder {
	color: rgba(255, 255, 255, .55);
}

body[data-bs-theme="dark"] .auth-control-icon {
	color: #fff;
	background: #1f4d48;
}

body[data-bs-theme="dark"] .auth-secondary-actions,
body[data-bs-theme="dark"] .auth-consent-item {
	border-color: rgba(255, 255, 255, .12);
}

body[data-bs-theme="dark"] .auth-consent-item {
	background: #252a30;
}

body[data-bs-theme="dark"] .auth-password-meter {
	background: #343a40;
}

body[data-bs-theme="dark"] .auth-password-feedback,
body[data-bs-theme="dark"] .auth-password-requirement {
	color: rgba(255, 255, 255, .62);
}

body[data-bs-theme="dark"] .auth-password-requirement.is-valid {
	color: #75d69c;
}

body[data-bs-theme="dark"] .text-muted {
	color: rgba(255, 255, 255, .55) !important;
}

@media (max-width: 991.98px) {
	.auth-shell.auth-shell-wide {
		grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
	}

	.auth-shell.auth-shell-wide .auth-brand,
	.auth-shell.auth-shell-wide .auth-panel {
		padding: 34px;
	}
}

@media (max-width: 767.98px) {
	.auth-page {
		align-items: flex-start;
		padding: 24px 12px;
	}

	.auth-shell,
	.auth-shell.auth-shell-wide {
		grid-template-columns: 1fr;
		border-radius: 18px;
	}

	.auth-brand,
	.auth-panel,
	.auth-card {
		padding: 28px;
	}

	.auth-brand {
		gap: 28px;
	}

	.auth-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.auth-actions .btn {
		width: 100%;
	}
}
