/* Bilingual labels — see modules/global-module/css/onduty-i18n.css */

/* Hide duplicate Pagelayer heading on login page (wizard block has its own title) */
body.page-id-115 #login-from-title {
	display: none !important;
}

/* Login form layout — wizard + standalone login page */

form#on-duty-login-form {
	position: relative;
}

form#on-duty-login-form .from-field-wrapper {
	margin-bottom: 24px;
}

form#on-duty-login-form .from-field-wrapper.forgot-password-field {
	position: static;
	right: auto;
	bottom: auto;
	text-align: right;
	margin: 4px 0 0;
	padding: 0;
}

form#on-duty-login-form .forgot-password-btn {
	color: #007aff;
	font-size: 14px;
	text-decoration: none;
}

form#on-duty-login-form .field-btn-wrapper.wizard-btn-wrapper {
	margin: 28px 0 0;
	padding: 0;
	width: 100%;
}

form#on-duty-login-form button.login-btn,
form#on-duty-login-form button.login-btn.next-btn {
	margin: 0 auto 0;
	display: block;
	width: auto;
	min-width: 160px;
}

.wizard-step-6 .login-from-wrapper form#on-duty-login-form + p.account-wrapper,
.onduty-login-standalone .login-from-wrapper > p.account-wrapper {
	margin-top: 28px;
	text-align: center;
	font-size: 16px;
	line-height: 26px;
}

.onduty-login-standalone p.account-wrapper .wizard-auth-hint {
	display: inline;
}

.onduty-login-standalone p.account-wrapper .register-form-btn,
.onduty-login-standalone p.account-wrapper .register-now-link {
	display: inline;
	margin-left: 6px;
	font-weight: 600;
	font-size: 16px;
	color: #007aff !important;
	text-decoration: underline;
	cursor: pointer;
}

.onduty-login-standalone p.account-wrapper .register-form-btn:hover,
.onduty-login-standalone p.account-wrapper .register-now-link:hover {
	color: #1a88ff !important;
}

/* Standalone login page — same layout as wizard step 6 (do NOT use .wizard-step — hidden until .active) */
body.page-id-115 .onduty-login-standalone,
.onduty-login-standalone {
	display: block !important;
	position: relative;
	padding: 0 20px 60px;
}

body.page-id-115 .onduty-login-standalone .login-wrapper {
	display: block !important;
}

body.page-id-115 .onduty-login-standalone .login-register-wrapper .login-wrapper > p.wizard-auth-subtitle {
	margin: 0 auto 50px;
}

html.onduty-theme-light body.page-id-115 .entry-content,
html.onduty-theme-light body.page-id-115 .site-content,
html.onduty-theme-light body.page-id-115 #content,
html.onduty-theme-light body.page-id-115 .elementor-section,
html.onduty-theme-light body.page-id-115 .e-con {
	background-color: var(--od-bg) !important;
	color: var(--od-text) !important;
}

/* Register page — wizard layout (standalone) */
body.page-id-130 .onduty-register-standalone,
.onduty-register-standalone {
	display: block !important;
	position: relative;
	padding: 0 20px 60px;
}

body.page-id-130 .onduty-register-standalone .register-wrapper {
	display: block !important;
}

body.page-id-130 .onduty-register-standalone .register-from-wrapper {
	margin-top: 0;
}

body.page-id-130 .onduty-register-standalone .register-from-wrapper form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	max-width: 860px;
	margin: 0 auto;
}

body.page-id-130 .onduty-register-standalone .register-from-wrapper .from-field-wrapper {
	width: 48%;
	margin-bottom: 24px;
}

body.page-id-130 .onduty-register-standalone .register-from-wrapper .field-btn-wrapper.wizard-btn-wrapper {
	width: 100%;
}

body.page-id-130 .onduty-register-standalone .login-register-wrapper .register-wrapper > p.wizard-register-subtitle {
	margin: 0 auto 50px;
}

/* Hide duplicate Elementor heading when custom form is present */
body.page-id-130 .onduty-register-standalone ~ .elementor-element,
body.page-id-130:has(.onduty-register-standalone) .elementor-element-93a371d,
body.page-id-130:has(.onduty-register-standalone) .elementor-element-5c41bc7 {
	display: none !important;
}

html:not([data-onduty-lang="en"]) .wizard-register-title .od-i18n[data-lang="de"],
html:not([data-onduty-lang="en"]) .wizard-register-subtitle .od-i18n[data-lang="de"],
html[data-onduty-lang="de"] .wizard-register-title .od-i18n[data-lang="de"],
html[data-onduty-lang="de"] .wizard-register-subtitle .od-i18n[data-lang="de"] {
	display: block !important;
}

html:not([data-onduty-lang="en"]) .wizard-register-title .od-i18n[data-lang="en"],
html:not([data-onduty-lang="en"]) .wizard-register-subtitle .od-i18n[data-lang="en"],
html[data-onduty-lang="de"] .wizard-register-title .od-i18n[data-lang="en"],
html[data-onduty-lang="de"] .wizard-register-subtitle .od-i18n[data-lang="en"] {
	display: none !important;
}

html[data-onduty-lang="en"] .wizard-register-title .od-i18n[data-lang="en"],
html[data-onduty-lang="en"] .wizard-register-subtitle .od-i18n[data-lang="en"] {
	display: block !important;
}

html[data-onduty-lang="en"] .wizard-register-title .od-i18n[data-lang="de"],
html[data-onduty-lang="en"] .wizard-register-subtitle .od-i18n[data-lang="de"] {
	display: none !important;
}

.onduty-register-standalone p.account-wrapper .login-form-btn {
	display: inline;
	margin-left: 6px;
	font-weight: 600;
	color: #007aff !important;
	text-decoration: underline;
}

html.onduty-theme-light body.page-id-130 .entry-content,
html.onduty-theme-light body.page-id-130 .site-content,
html.onduty-theme-light body.page-id-130 #content,
html.onduty-theme-light body.page-id-130 .elementor-section,
html.onduty-theme-light body.page-id-130 .e-con {
	background-color: var(--od-bg) !important;
	color: var(--od-text) !important;
}

/* Password reset page — matches login (WPForms #496) */
html.onduty-theme-dark body.page-id-500,
body.page-id-500 {
	background-color: #1d1f27 !important;
}

html.onduty-theme-light body.page-id-500 {
	background-color: #eef1f6 !important;
}

html.onduty-theme-light body.page-id-500 .entry-content,
html.onduty-theme-light body.page-id-500 .site-content,
html.onduty-theme-light body.page-id-500 #content {
	background-color: var(--od-bg) !important;
	color: var(--od-text) !important;
}

.onduty-password-reset-standalone {
	display: block !important;
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
	.onduty-password-reset-standalone.onduty-animate-in {
		animation: odAuthPageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}
}

.onduty-password-reset-standalone .password-reset-wrapper {
	max-width: 520px;
	margin: 0 auto;
}

.onduty-password-reset-standalone .wizard-auth-title {
	margin: 0 0 16px;
	text-align: center;
}

.onduty-password-reset-standalone .wizard-auth-subtitle {
	margin: 0 auto 32px;
	max-width: 480px;
	text-align: center;
	color: #c9c9c9;
	font-size: 16px;
	line-height: 1.5;
}

html.onduty-theme-light .onduty-password-reset-standalone .wizard-auth-subtitle {
	color: #5c6370;
}

html:not([data-onduty-lang="en"]) .onduty-password-reset-standalone .wizard-auth-title .od-i18n[data-lang="de"],
html[data-onduty-lang="de"] .onduty-password-reset-standalone .wizard-auth-title .od-i18n[data-lang="de"] {
	display: block !important;
}

html[data-onduty-lang="en"] .onduty-password-reset-standalone .wizard-auth-title .od-i18n[data-lang="en"] {
	display: block !important;
}

html:not([data-onduty-lang="en"]) .onduty-password-reset-standalone .wizard-auth-subtitle .od-i18n[data-lang="de"],
html[data-onduty-lang="de"] .onduty-password-reset-standalone .wizard-auth-subtitle .od-i18n[data-lang="de"] {
	display: block !important;
}

html[data-onduty-lang="en"] .onduty-password-reset-standalone .wizard-auth-subtitle .od-i18n[data-lang="en"] {
	display: block !important;
}

html:not([data-onduty-lang="en"]) .onduty-password-reset-standalone .password-reset-back .od-i18n[data-lang="de"],
html[data-onduty-lang="de"] .onduty-password-reset-standalone .password-reset-back .od-i18n[data-lang="de"] {
	display: inline !important;
}

html[data-onduty-lang="en"] .onduty-password-reset-standalone .password-reset-back .od-i18n[data-lang="en"] {
	display: inline !important;
}

/* Hide spam/hidden WPForms fields */
body.page-id-500 #wpforms-496-field_3-container,
body.page-id-500 .wpforms-field-hidden {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.page-id-500 div#wpforms-496 {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
}

body.page-id-500 form#wpforms-form-496 {
	width: 100%;
	max-width: 442px;
	margin: 0 auto;
}

body.page-id-500 form#wpforms-form-496 .wpforms-field-label {
	display: block;
	margin-bottom: 8px;
	font-family: "Josefin Sans", sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	text-align: left;
}

html.onduty-theme-dark body.page-id-500 form#wpforms-form-496 .wpforms-field-label {
	color: #ffffff !important;
}

html.onduty-theme-light body.page-id-500 form#wpforms-form-496 .wpforms-field-label {
	color: #1a1d24 !important;
}

body.page-id-500 form#wpforms-form-496 input[type="text"],
body.page-id-500 form#wpforms-form-496 input[type="email"],
body.page-id-500 form#wpforms-form-496 input[type="password"] {
	width: 100% !important;
	max-width: 100% !important;
	height: 48px !important;
	padding: 15px 20px !important;
	font-family: "Josefin Sans", sans-serif !important;
	font-size: 14px !important;
	line-height: 20px !important;
	border-radius: 4px !important;
	box-sizing: border-box !important;
	appearance: none;
	-webkit-appearance: none;
}

html.onduty-theme-dark body.page-id-500 form#wpforms-form-496 input[type="text"],
html.onduty-theme-dark body.page-id-500 form#wpforms-form-496 input[type="email"],
html.onduty-theme-dark body.page-id-500 form#wpforms-form-496 input[type="password"] {
	border: 1px solid rgba(26, 136, 255, 0.3) !important;
	background-color: #141414 !important;
	color: #ffffff !important;
}

html.onduty-theme-light body.page-id-500 form#wpforms-form-496 input[type="text"],
html.onduty-theme-light body.page-id-500 form#wpforms-form-496 input[type="email"],
html.onduty-theme-light body.page-id-500 form#wpforms-form-496 input[type="password"] {
	border: 1px solid rgba(0, 122, 255, 0.35) !important;
	background-color: #ffffff !important;
	color: #1a1d24 !important;
}

body.page-id-500 form#wpforms-form-496 .wpforms-submit-container {
	margin-top: 28px;
	padding: 0;
}

body.page-id-500 form#wpforms-form-496 button#wpforms-submit-496,
body.page-id-500 form#wpforms-form-496 .wpforms-submit {
	display: block !important;
	width: auto !important;
	min-width: 200px !important;
	margin: 0 auto !important;
	padding: 14px 34px !important;
	border: none !important;
	border-radius: 4px !important;
	background: linear-gradient(180deg, #0026bc 0%, #001156 100%) !important;
	box-shadow: -0.5px -0.5px 0px 0px #00000012, 0 10px 28px rgba(0, 38, 188, 0.35) !important;
	font-family: "Josefin Sans", sans-serif !important;
	font-weight: 600 !important;
	font-size: 18px !important;
	line-height: 16px !important;
	color: #ffffff !important;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-id-500 form#wpforms-form-496 button#wpforms-submit-496:hover,
body.page-id-500 form#wpforms-form-496 .wpforms-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(0, 38, 188, 0.45) !important;
}

body.page-id-500 .wpforms-field-password .wpforms-field-password-input-icon svg,
body.page-id-500 .wpforms-field-password .wpforms-field-password-input-icon path {
	fill: #646464;
}

body.page-id-500 div.wpforms-container-full#wpforms-496 .wpforms-confirmation-container-full {
	margin-top: 24px;
	padding: 16px 20px;
	border-radius: 8px;
	text-align: center;
	font-family: "Josefin Sans", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

html.onduty-theme-dark body.page-id-500 div.wpforms-container-full#wpforms-496 .wpforms-confirmation-container-full {
	background: rgba(0, 122, 255, 0.12);
	color: #fafbfc;
	border: 1px solid rgba(0, 122, 255, 0.25);
}

html.onduty-theme-light body.page-id-500 div.wpforms-container-full#wpforms-496 .wpforms-confirmation-container-full {
	background: rgba(0, 122, 255, 0.08);
	color: #1a1d24;
	border: 1px solid rgba(0, 122, 255, 0.2);
}

body.page-id-500 div.wpforms-container-full#wpforms-496 .wpforms-confirmation-container-full a {
	color: #007aff;
	font-weight: 600;
}

.onduty-password-reset-standalone p.password-reset-back {
	margin-top: 28px;
	text-align: center;
	font-size: 16px;
}

.onduty-password-reset-standalone p.password-reset-back a {
	font-weight: 600;
	color: #007aff !important;
	text-decoration: underline;
}

/* Password reset — second step (new password fields) */
body.page-id-500 #wpforms-496-field_2-container {
	width: 100% !important;
	max-width: 100% !important;
}

body.page-id-500 #wpforms-496-field_2-container .wpforms-field-row {
	display: block;
}

body.page-id-500 #wpforms-496-field_2-container .wpforms-field-row-block {
	width: 100% !important;
	padding: 0 !important;
	margin-bottom: 24px;
}
