@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ---------- Page shell ---------- */

#login-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: #f5f3f3;
	font-family: 'IBM Plex Sans', sans-serif;
}

/* ---------- Header ---------- */

#login-header {
	background: var(--brand-header, #121010);
	background:
		radial-gradient(420px 120px at 0 0, rgba(255, 255, 255, .07), transparent 70%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
		linear-gradient(180deg, var(--brand-header, #1c1a1a) 0%, var(--brand-header, #121010) 100%);
	padding: clamp(14px, 2.5vw, 20px) clamp(16px, 2.5vw, 32px);
	border-bottom: 3px solid color-mix(in srgb, var(--brand-header, #1c1a1a) 70%, #000);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.login-logo {
	display: block;
	width: 108px;
	height: 56px;
	background-size: contain;
	background-position: left center;
	background-repeat: no-repeat;
}

/* ---------- Main / card ---------- */

#login-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px;
}

#login-card {
	width: 100%;
	max-width: 400px;
	background: #fff;
	border: 1px solid #e2dcdc;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(18, 10, 10, .08);
	padding: 40px 36px 36px;
}

.login-title {
	margin: 0 0 28px;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 32px;
	letter-spacing: -.01em;
	color: #1c1a1a;
}

/* ---------- Supporting text ---------- */

.login-desc {
	margin: -12px 0 24px;
	font-size: 14px;
	color: #6b6262;
}

.login-error {
	margin-bottom: 16px;
	padding: 10px 14px;
	background: #fff3f3;
	border: 1px solid #f5c2c2;
	border-radius: 8px;
	font-size: 13px;
	color: #b91c1c;
}

/* ---------- Fields ---------- */

.login-field {
	margin-bottom: 16px;
}

.login-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	font-size: 13px;
	line-height: 18px;
	letter-spacing: .01em;
	color: #3d3636;
}

.login-field input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 42px;
	padding: 0 12px;
	background: #faf8f8;
	border: 1px solid #d9d2d2;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	color: #1c1a1a;
	transition: border-color .15s, box-shadow .15s;
}

.login-field input::placeholder {
	color: #a89e9e;
}

.login-field input:focus {
	outline: 0;
	border-color: var(--brand-nav, #a92022);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-nav, #a92022) 18%, transparent);
}

/* Password field with the show/hide eye button (added by login.js) */
.login-password {
	position: relative;
	display: block;
}

.login-password input {
	padding-right: 42px;
}

.login-eye {
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0 8px 8px 0;
	font-size: 16px;
	color: #8a7f7f;
	cursor: pointer;
}

.login-eye:hover {
	color: var(--brand-nav, #a92022);
}

.login-eye:focus-visible {
	outline: 2px solid var(--brand-nav, #a92022);
	outline-offset: -2px;
}

/* ---------- Button ---------- */

.login-btn {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 0 16px;
	height: 44px;
	background: var(--brand-nav, #a92022);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s;
}

.login-btn:hover {
	background: color-mix(in srgb, var(--brand-nav, #a92022) 85%, #000);
}

.login-btn:active {
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3);
}

.login-btn:focus-visible {
	outline: 2px solid var(--brand-nav, #a92022);
	outline-offset: 3px;
}

/* ---------- Reset link ---------- */

.login-reset {
	display: block;
	margin-top: 18px;
	font-size: 13px;
	text-align: right;
	color: color-mix(in srgb, var(--brand-nav, #a92022) 80%, #000);
	text-decoration: none;
}

.login-reset:hover {
	text-decoration: underline;
}

/* ---------- Footer ---------- */

#login-footer {
	padding: 14px clamp(16px, 2.5vw, 32px);
	background: var(--brand-footer, #121010);
	border-top: 2px solid color-mix(in srgb, var(--brand-footer, #121010) 70%, #000);
	color: rgba(255, 255, 255, .45);
	font-size: 12px;
	text-align: center;
}

/* ---------- Hide app chrome that bleeds in ---------- */

#header,
#footer-wrapper,
.system-breadcrumb-nav {
	display: none !important;
}

/* Remove container constraints so the login shell spans the full viewport */
#container {
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* Match body background to the login page so there's no gap at wide viewports */
body {
	background: #f5f3f3 !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
	#login-card {
		padding: 28px 20px 24px;
		border-radius: 10px;
	}

	.login-title {
		font-size: 24px;
	}
}
