:root {
	--os-green: #88bd24;
	--os-green-dark: #6e9e17;
	--os-text: #20251d;
	--os-muted: #72796d;
	--os-line: #dfe5d9;
	--os-danger: #b42318;
}

body {
	background: #f5f7f2;
	color: var(--os-text);
}

.page-content-wrapper,
.page-content-wrapper > main,
.page_content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}
.web-footer,
.navbar {
	display: none !important;
}

.os-login {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 32px 20px;
	background: radial-gradient(circle at 12% 15%, rgba(136, 189, 36, 0.13), transparent 32%),
		linear-gradient(145deg, #f9faf7 0%, #eff4e9 100%);
}

.os-login-card {
	width: min(100%, 430px);
	padding: 38px;
	background: #fff;
	border: 1px solid rgba(32, 37, 29, 0.08);
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(50, 69, 31, 0.13);
}

.os-login-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 21px;
	font-weight: 650;
}
.os-login-brand img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}
.os-login-brand strong {
	color: var(--os-green-dark);
}
.os-login-heading {
	margin: 32px 0 26px;
}
.os-login-heading h1 {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.15;
}
.os-login-heading p,
.os-login-help {
	margin: 0;
	color: var(--os-muted);
}

.os-field {
	display: block;
	margin-bottom: 18px;
	font-weight: 600;
}
.os-field > span:first-child {
	display: block;
	margin-bottom: 7px;
}
.os-field input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--os-line);
	border-radius: 10px;
	background: #fff;
	color: var(--os-text);
	font: inherit;
	font-weight: 450;
	outline: none;
}
.os-phone-control {
	display: flex;
	align-items: center;
	height: 48px;
	border: 1px solid var(--os-line);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.os-phone-control:focus-within {
	border-color: var(--os-green);
	box-shadow: 0 0 0 3px rgba(136, 189, 36, 0.18);
}
.os-phone-prefix {
	display: flex !important;
	align-items: center;
	align-self: stretch;
	margin: 0 !important;
	padding: 0 12px 0 14px;
	border-right: 1px solid var(--os-line);
	background: #f8faf6;
	color: var(--os-text);
	font-weight: 650;
	user-select: none;
}
.os-field .os-phone-control input {
	height: 46px;
	border: 0;
	border-radius: 0;
}
.os-field .os-phone-control input:focus {
	box-shadow: none;
}
.os-field input:focus {
	border-color: var(--os-green);
	box-shadow: 0 0 0 3px rgba(136, 189, 36, 0.18);
}
.os-password-wrap {
	position: relative;
	display: block;
}
.os-password-wrap input {
	padding-right: 94px;
}
.os-password-toggle {
	position: absolute;
	right: 8px;
	top: 7px;
	height: 34px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: var(--os-green-dark);
	font-weight: 600;
	cursor: pointer;
}
.os-field-error {
	display: block;
	min-height: 18px;
	margin-top: 5px;
	color: var(--os-danger);
	font-weight: 450;
}
.os-login-error {
	margin: -3px 0 16px;
	padding: 11px 13px;
	border-radius: 9px;
	background: #fef3f2;
	color: var(--os-danger);
}
.os-login-submit,
.os-dialog button {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 10px;
	background: var(--os-green);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.os-login-submit:hover,
.os-dialog button:hover {
	background: var(--os-green-dark);
}
.os-login-submit:focus-visible,
.os-dialog button:focus-visible,
.os-forgot:focus-visible,
.os-password-toggle:focus-visible {
	outline: 3px solid rgba(136, 189, 36, 0.35);
	outline-offset: 2px;
}
.os-login-submit:disabled {
	cursor: wait;
	opacity: 0.7;
}
.os-forgot {
	display: block;
	margin: 20px auto 18px;
	border: 0;
	background: transparent;
	color: var(--os-green-dark);
	font-weight: 650;
	cursor: pointer;
}
.os-login-help {
	text-align: center;
	font-size: 14px;
	line-height: 1.45;
}

.os-dialog-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(20, 26, 17, 0.48);
}
.os-dialog-backdrop[hidden] {
	display: none;
}
.os-dialog {
	width: min(100%, 390px);
	padding: 28px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
.os-dialog h2 {
	margin: 0 0 12px;
	font-size: 22px;
}
.os-dialog p {
	margin: 0 0 22px;
	color: var(--os-muted);
	line-height: 1.5;
}

@media (max-width: 520px) {
	.os-login {
		place-items: start center;
		padding: 18px 12px;
	}
	.os-login-card {
		margin-top: 5vh;
		padding: 27px 22px;
		border-radius: 17px;
	}
	.os-login-heading {
		margin: 27px 0 22px;
	}
	.os-login-heading h1 {
		font-size: 27px;
	}
}

/* The password page shares the login card and controls. */
.os-password-continue {
	display: grid;
	place-items: center;
	margin-top: 20px;
	text-decoration: none;
}
.os-password-continue:hover { color: #fff; text-decoration: none; }
#password-hint { margin: 0 0 20px; text-align: left; }
.os-login [hidden] { display: none !important; }
