.field-error {
  display: block;
  color: #d87c6a;
  font-size: 11px;
  margin-top: 4px;
}

.input-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 5px rgba(192, 57, 43, 0.6) !important;
}

.alert-banner {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  color: #721c24;
  padding: 14px 45px 14px 16px;
  margin-bottom: 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

.alert-banner.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-banner.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.alert-banner.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.alert-banner-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  padding: 0;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s;
}

.alert-banner-close:hover {
  opacity: 1;
}

.alert-banner.hiding {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.g-recaptcha {
  transform: scale(0.6);
  transform-origin: 0 0;
  margin: 5px 0;
}

body.captcha-popout-open {
	overflow: hidden;
}

.captcha-popout {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 99985;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 18px;
	background: rgba(0, 0, 0, 0.72);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.captcha-popout.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.captcha-popout__dialog {
	position: relative;
	box-sizing: border-box;
	width: min(360px, calc(100vw - 32px));
	padding: 22px 24px 24px;
	border: 1px solid rgba(255, 155, 52, 0.45);
	border-radius: 6px;
	background: linear-gradient(180deg, rgba(44, 22, 9, 0.98), rgba(18, 10, 5, 0.98));
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.82);
}

.captcha-popout__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255, 155, 52, 0.32);
	border-radius: 4px;
	background: rgba(20, 10, 4, 0.8);
	color: #ffe4c9;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}

.captcha-popout__close:hover {
	border-color: rgba(255, 155, 52, 0.75);
	color: #ffffff;
}

.captcha-popout__title {
	margin: 0 34px 18px 0;
	color: #f0c9a0;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.captcha-popout__slot {
	display: flex;
	width: 100%;
	min-height: 78px;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.captcha-popout__actions {
	margin-top: 18px;
}

.captcha-popout__action {
	width: 100%;
	min-height: 46px;
	opacity: 0.55;
	cursor: not-allowed;
	filter: grayscale(0.35);
}

.captcha-popout__action.is-ready {
	opacity: 1;
	cursor: pointer;
	filter: none;
}

.captcha-popout__action:disabled::before {
	display: none;
}

.captcha-popout .captcha-popout-source {
	display: flex;
	width: 100%;
	transform: none;
	justify-content: center;
	transform-origin: center center;
}

.captcha-popout .g-recaptcha {
	display: flex;
	justify-content: center;
	margin: 0 auto;
	max-width: 100%;
	transform: none;
	transform-origin: center center;
}

@media (max-width: 360px) {
	.captcha-popout__dialog {
		padding-right: 16px;
		padding-left: 16px;
	}

	.captcha-popout .g-recaptcha {
		transform: scale(0.92);
	}
}

body.captcha-modal-fix-active::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 99980;
	pointer-events: none;
}

.m2zone-popup-fixed {
	position: fixed !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	z-index: 99999 !important;
	margin: 0 !important;
}

.login-action-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

.captcha-inline {
	width: fit-content;
	position: relative;
	z-index: 20;
	transform-origin: left center;
}

.captcha-inline .g-recaptcha {
	display: block;
}

.captcha-inline-sidebar {
	transform: scale(0.90);
}

.auth-wrapper .captcha-inline {
	transform: scale(1.20);
}

.footer-backlink {
	margin: 6px 0 0;
	font-size: 12px;
	opacity: 0.75;
}

.footer-backlink a {
	color: inherit;
	text-decoration: none;
}

.footer-backlink a:hover {
	text-decoration: underline;
}
