/* Staff login + MFA challenge — aligned with manageUserModern.css */

body.staff-auth {
	margin: 0;
	min-height: 100vh;
	background: #f4f7fb;
	color: #1f2937;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

.staff-auth-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 28px 16px 40px;
	box-sizing: border-box;
}

.staff-auth-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	padding: 22px 24px 24px;
	box-sizing: border-box;
}

.staff-auth-logos {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}

.staff-auth-logos img {
	width: 60px;
	height: auto;
	display: block;
}

/* Login page: title between logos, subtitle below full width */
.staff-auth-header {
	margin-bottom: 18px;
}

.staff-auth-logos-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.staff-auth-logo {
	flex: 0 0 auto;
}

.staff-auth-logo img {
	width: 60px;
	height: auto;
	display: block;
}

.staff-auth-heading {
	text-align: center;
	font-weight: 700;
	font-size: 1.35rem;
	margin: 0 0 6px;
	color: #0f172a;
}

.staff-auth-heading--between-logos {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0 4px;
	font-size: clamp(1rem, 2.8vw, 1.25rem);
	line-height: 1.2;
	white-space: nowrap;
	text-align: center;
}

@media (max-width: 380px) {
	.staff-auth-heading--between-logos {
		white-space: normal;
	}
}

.staff-auth-sub {
	text-align: center;
	font-size: 0.95rem;
	color: #64748b;
	margin: 0;
}

.staff-auth-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font-weight: 600;
	text-align: center;
	font-size: 0.95rem;
}

.staff-auth-alert--neutral {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #334155;
}

.staff-auth-alert--error {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	color: #9f1239;
}

.staff-auth-alert--success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.staff-auth-alert--warn {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #7a4f00;
}

.staff-auth-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.staff-auth-form-row label {
	font-weight: 600;
	color: #334155;
	font-size: 0.9rem;
}

.staff-auth-actions {
	text-align: center;
	margin-top: 8px;
}

.staff-auth-actions--stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}

.staff-auth-actions--inline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.staff-auth-foot {
	width: 100%;
	max-width: 520px;
	margin-top: 28px;
	text-align: center;
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.5;
}

.staff-auth-foot-block {
	margin: 0 0 14px;
}

.staff-auth-foot-lead {
	display: inline;
	color: #334155;
}

.staff-auth-foot-customer {
	margin: 20px 0 0;
}

.staff-auth-foot-link {
	display: inline-block;
	color: #4f46e5;
	font-weight: 700;
	font-size: 1.2rem;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 10px;
	border: 2px solid #c7d2fe;
	background: #eef2ff;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.staff-auth-foot-link:hover {
	background: #e0e7ff;
	border-color: #a5b4fc;
	color: #3730a3;
	text-decoration: none;
}

.staff-auth-foot a {
	color: #4f46e5;
	font-weight: 600;
	text-decoration: none;
}

.staff-auth-foot a:hover {
	text-decoration: underline;
}

.staff-auth-foot a.staff-auth-foot-link:hover {
	text-decoration: none;
}

.staff-auth-cancel {
	margin-top: 18px;
	text-align: center;
}

.staff-auth-cancel a {
	color: #64748b;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

.staff-auth-cancel a:hover {
	color: #4f46e5;
	text-decoration: underline;
}

body.staff-auth input[type="text"],
body.staff-auth input[type="email"],
body.staff-auth input[type="password"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 15px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.staff-auth input[type="text"]:focus,
body.staff-auth input[type="email"]:focus,
body.staff-auth input[type="password"]:focus {
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
	outline: none;
}

body.staff-auth button,
body.staff-auth input[type="submit"] {
	border: 1px solid #4f46e5;
	background: #4f46e5;
	color: #fff;
	border-radius: 8px;
	padding: 9px 16px;
	font-weight: 600;
	letter-spacing: 0.2px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

body.staff-auth button:hover,
body.staff-auth input[type="submit"]:hover {
	background: #4338ca;
	border-color: #4338ca;
}

body.staff-auth button:active,
body.staff-auth input[type="submit"]:active {
	transform: translateY(1px);
}

body.staff-auth .staff-auth-btn--secondary {
	background: #fff;
	color: #4338ca;
	border-color: #c7d2fe;
}

body.staff-auth .staff-auth-btn--secondary:hover {
	background: #eef2ff;
	border-color: #a5b4fc;
}

body.staff-auth .staff-auth-hint {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0 0 12px;
	text-align: center;
}

body.staff-auth .staff-auth-hint--spaced {
	margin-bottom: 18px;
}

body.staff-auth .staff-auth-section-title {
	font-weight: 600;
	font-size: 0.9rem;
	color: #334155;
	margin: 16px 0 8px;
	text-align: center;
}

/* Primary text link styled like submit (error / info pages) */
body.staff-auth a.staff-auth-action-primary {
	display: inline-block;
	margin-top: 6px;
	border: 1px solid #4f46e5;
	background: #4f46e5;
	color: #fff !important;
	border-radius: 8px;
	padding: 9px 18px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.2px;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

body.staff-auth a.staff-auth-action-primary:hover {
	background: #4338ca;
	border-color: #4338ca;
	text-decoration: none;
}

body.staff-auth a.staff-auth-action-primary:active {
	transform: translateY(1px);
}
