/* Sign in / Sign up pages — side panel gradient plus tighter vertical spacing so the page fits the screen */

/* style.css adds 60px of top padding to every page for the fixed site header, which these pages don't have */
body {
	padding-top: 0 !important;
}

.app-form-sidebar {
	background: #2FB344 url(../assets/images/bg/auth-side.svg) center / cover no-repeat;
	color: #fff;
	justify-content: flex-end;
}

.app-form-sidebar .sign_sidebar_text h1 {
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 60, 20, .35);
}

/* ---------- Messages ---------- */
.auth-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	border-inline-start-width: 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-align: start;
	animation: auth-alert-in .25s ease-out;
}

.auth-alert > i {
	flex: 0 0 auto;
	margin-top: 3px;
	font-size: 16px;
}

.auth-alert--error {
	background: #fef2f2;
	border-color: #fecaca;
	border-inline-start-color: #dc2626;
	color: #991b1b;
}

.auth-alert--error > i {
	color: #dc2626;
}

.auth-alert--success {
	background: #f0fdf4;
	border-color: #bbf7d0;
	border-inline-start-color: #16a34a;
	color: #166534;
}

.auth-alert--success > i {
	color: #16a34a;
}

.auth-alert a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

@keyframes auth-alert-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Top row: only the language picker; the sign up / sign in link is shown under the form */
.app-top-right-link {
	display: none !important;
}

.app_responsive_signup_link {
	display: block !important;
	margin-top: 24px;
	font-size: 14px;
}

.app-top-items {
	justify-content: flex-end;
}

.app-top-left-logo {
	display: none;
}

/* Language picker: plain text choices above the copyright line (no box, no icon, no line) */
.auth-lang {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 18px;
	margin: 0 0 14px;
}

.auth-lang__item {
	position: relative;
	padding: 4px 2px;
	color: #6b7385;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: color .2s;
}

.auth-lang__item:hover {
	color: #1f8a34 !important;
}

.auth-lang__item.active,
.auth-lang__item.active:hover {
	color: #2FB344 !important;
	font-weight: 700;
}

/* Continue with Google — same width and height as the form inputs */
.google_continue_btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 46px;
	margin-top: 18px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #dadce0;
	border-radius: 10px;
	color: #3c4043;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s, box-shadow .2s;
}

.google_continue_btn:hover:not(:disabled) {
	background: #f8f9fa;
	box-shadow: 0 1px 4px rgba(60, 64, 67, .2);
}

.google_continue_btn:disabled {
	opacity: .6;
	cursor: wait;
}

/* Invalid field state */
.reg_form_input_1:invalid:not(:placeholder-shown):not(:focus),
.reg_form_input_1.is-invalid {
	border-color: #dc2626;
	background: #fffafa;
}

.reg_form_input_1.is-invalid:focus,
.reg_form_input_1:invalid:not(:placeholder-shown):focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.reg_form_input_1::placeholder,
.form_input_1::placeholder,
.form_textarea_1::placeholder {
	color: #9aa3b2;
	opacity: 1;
}

@media (min-width: 992px) {
	.app-form-content {
		padding: 20px 0;
	}

	.app-form-content .registration_title {
		margin-top: 12px;
	}

	.app-form-content .form_group.mt-30 {
		margin-top: 18px !important;
	}

	.app-form-content .form_group.mt-25 {
		margin-top: 16px !important;
	}

	.app-form-content .reg_form_input_1 {
		height: 46px;
	}

	.app-form-content .btn-register {
		margin-top: 18px;
	}

	.app-form-content .register_footer {
		margin-top: 16px !important;
	}

	.app-form-sidebar {
		padding: 36px 50px;
	}
}

/* Sign in / Sign up / Forgot password links: green instead of the theme blue */
.SidebarRegister__link,
.FieldPassword__link {
	color: #2FB344;
	font-weight: 600;
}

.SidebarRegister__link:hover,
.FieldPassword__link:hover {
	color: #1f8a34 !important;
	text-decoration: underline !important;
}
