/* Custom front-end login page - replaces wp-login.php as the primary
   entry point. Same design tokens as the rest of the app for consistency. */
:root {
	--dxr-navy-900: #0B2036;
	--dxr-navy-800: #0F2A43;
	--dxr-teal-500: #0EA5B7;
	--dxr-teal-100: #E3F7F9;
	--dxr-border: #DFE6EC;
	--dxr-text: #1E293B;
	--dxr-text-muted: #64748B;
	--dxr-red: #DC2626;
	--dxr-red-bg: #FDECEC;
}

.dxr-custom-login {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
	direction: rtl;
	position: relative;
	background: radial-gradient(circle at 50% 0%, #123253 0%, var(--dxr-navy-800) 55%, #081521 100%);
	border-radius: 16px;
}

.dxr-custom-login::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 16px;
	background: linear-gradient(100deg, transparent 45%, rgba(14,165,183,.12) 50%, transparent 55%);
	background-size: 200% 200%;
	animation: dxr-login-scan 9s linear infinite;
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.dxr-custom-login::before { animation: none; }
}
@keyframes dxr-login-scan {
	0% { background-position: 0% 0%; }
	100% { background-position: 200% 0%; }
}

.dxr-custom-login-card {
	position: relative;
	z-index: 1;
	width: min(400px, 100%);
	background: #fff;
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
	text-align: center;
}

.dxr-custom-login-logo {
	max-height: 64px;
	max-width: 220px;
	margin: 0 auto 14px;
	display: block;
}

.dxr-custom-login-card h1 {
	font-size: 18px;
	margin: 0 0 4px;
	color: var(--dxr-navy-800);
}

.dxr-custom-login-sub {
	font-size: 13px;
	color: var(--dxr-text-muted);
	margin: 0 0 20px;
}

.dxr-custom-login-error {
	background: var(--dxr-red-bg);
	color: var(--dxr-red);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
	text-align: right;
}

.dxr-custom-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: right;
}

.dxr-custom-login-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dxr-navy-800);
}

.dxr-custom-login-form input[type="text"],
.dxr-custom-login-form input[type="password"] {
	border: 1px solid var(--dxr-border);
	border-radius: 8px;
	padding: 11px 13px;
	font-size: 14px;
	font-family: inherit;
	direction: ltr;
	text-align: right;
}
.dxr-custom-login-form input[type="text"]:focus,
.dxr-custom-login-form input[type="password"]:focus {
	outline: none;
	border-color: var(--dxr-teal-500);
	box-shadow: 0 0 0 3px rgba(14,165,183,.18);
}

.dxr-custom-login-remember {
	flex-direction: row !important;
	align-items: center;
	gap: 8px !important;
	font-weight: 400 !important;
}

.dxr-custom-login-submit {
	background: var(--dxr-navy-800);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 4px;
}
.dxr-custom-login-submit:hover {
	background: var(--dxr-teal-500);
	color: #06222A;
}

.dxr-custom-login-lang {
	margin-top: 16px;
}
.dxr-custom-login-lang select {
	width: 100%;
	padding: 8px;
	border-radius: 8px;
	border: 1px solid var(--dxr-border);
	font-family: inherit;
}

.dxr-custom-login-links {
	display: flex;
	justify-content: space-between;
	margin-top: 18px;
	font-size: 12.5px;
}
.dxr-custom-login-links a {
	color: var(--dxr-teal-500);
	text-decoration: none;
	font-weight: 600;
}
.dxr-custom-login-links a:hover {
	color: var(--dxr-navy-800);
}

.dxr-custom-login-credit {
	margin-top: 24px;
	font-size: 11px;
	color: var(--dxr-text-muted);
}
.dxr-custom-login-credit a {
	color: var(--dxr-navy-800);
	font-weight: 700;
	text-decoration: none;
}
.dxr-custom-login-credit a:hover {
	color: var(--dxr-teal-500);
	text-decoration: underline;
}

.dxr-role-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 8px 0 4px;
}
.dxr-role-card {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 2px solid var(--dxr-border);
	border-radius: 12px;
	padding: 16px 18px;
	text-align: right;
	transition: .15s;
}
.dxr-role-card:hover {
	border-color: var(--dxr-teal-500);
	background: var(--dxr-teal-100, #E3F7F9);
}
.dxr-role-card-icon {
	font-size: 28px;
	line-height: 1;
}
.dxr-role-card-title {
	display: block;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--dxr-navy-800);
}
.dxr-role-card-sub {
	display: block;
	font-size: 12px;
	color: var(--dxr-text-muted);
	margin-top: 2px;
}
.dxr-custom-login-links-center {
	justify-content: center;
}

.dxr-notice {
	max-width: 480px;
	margin: 60px auto;
	text-align: center;
	background: #E3F7F9;
	color: #0B6E7A;
	padding: 16px 20px;
	border-radius: 10px;
	font-size: 14px;
}
.dxr-notice a {
	color: var(--dxr-navy-800);
	font-weight: 700;
}

@media (max-width: 480px) {
	.dxr-custom-login-card { padding: 26px 20px; }
}
