/* Login page redesign (see _doc/design_handoff_login_redesign) */

* { box-sizing: border-box; }

body.lgn {
	margin: 0;
	padding: 0;
	font-family: 'Libre Franklin', system-ui, sans-serif;
	background: #F5F3F1;
	color: #1c1a19;
}
body.lgn a { color: #B21807; text-decoration: none; }
body.lgn a:hover { color: #8A1206; }

.lgn-page { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.lgn-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 40px;
	background: #ffffff;
	border-bottom: 1px solid #eceae7;
}
body.lgn a.lgn-brand { display: flex; align-items: center; gap: 14px; color: #1c1a19; }
img.lgn-logo { height: 40px; width: auto; display: block; border: 0; }
.lgn-brand-text { display: flex; flex-direction: column; line-height: 1; }
.lgn-wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #1c1a19; }
.lgn-wordmark span { color: #B21807; }
.lgn-tagline { font-size: 12px; font-weight: 500; color: #8a827d; margin-top: 4px; letter-spacing: 0.01em; }

.lgn-nav { display: flex; align-items: center; gap: 8px; }
body.lgn a.lgn-nav-link { font-size: 14px; font-weight: 600; color: #4a443f; padding: 9px 14px; border-radius: 8px; }
body.lgn a.lgn-nav-link:hover { background: #f5f3f1; color: #1c1a19; }
body.lgn a.lgn-nav-cta { font-size: 14px; font-weight: 700; color: #ffffff; background: #B21807; padding: 10px 18px; border-radius: 8px; margin-left: 6px; }
body.lgn a.lgn-nav-cta:hover { background: #8A1206; color: #ffffff; }

/* Main split-screen grid */
.lgn-main { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }

/* Left panel (brand / marketing) */
.lgn-hero {
	position: relative;
	overflow: hidden;
	background: #EFECE8;
	color: #1c1a19;
	padding: 72px 64px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-right: 1px solid #e4e0db;
}
.lgn-hero-deco { position: absolute; border: 1px solid rgba(28,26,25,0.06); }
.lgn-hero-deco-tr { top: -120px; right: -100px; width: 380px; height: 380px; border-radius: 40px; transform: rotate(35deg); }
.lgn-hero-deco-bl { bottom: -140px; left: -90px; width: 300px; height: 300px; border-radius: 34px; transform: rotate(22deg); }
.lgn-hero-inner { position: relative; max-width: 440px; }
.lgn-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #B21807;
	padding: 7px 13px;
	border: 1px solid rgba(178,24,7,0.28);
	border-radius: 100px;
}
h1.lgn-hero-title { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 26px 0 0; color: #1c1a19; }
p.lgn-hero-text { font-size: 16px; line-height: 1.6; color: #6b645f; margin: 18px 0 0; }
.lgn-features { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.lgn-feature { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 500; color: #3a3531; }
.lgn-feature-dot { width: 8px; height: 8px; border-radius: 2px; background: #B21807; flex: none; }

/* Right panel (login form) */
.lgn-panel { display: flex; align-items: center; justify-content: center; padding: 56px 48px; background: #F5F3F1; }
.lgn-panel-inner { width: 100%; max-width: 400px; }
h2.lgn-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
p.lgn-subtitle { font-size: 14px; color: #8a827d; margin: 6px 0 0; }

form.lgn-form { margin: 30px 0 0; display: flex; flex-direction: column; gap: 18px; }
.lgn-field { display: flex; flex-direction: column; gap: 7px; }
.lgn-label { font-size: 13px; font-weight: 700; color: #4a443f; }
.lgn-label-row { display: flex; align-items: baseline; justify-content: space-between; }
body.lgn a.lgn-forgot { font-size: 12.5px; font-weight: 600; color: #B21807; }
body.lgn a.lgn-forgot:hover { color: #8A1206; }
input.lgn-input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font-size: 15px;
	font-family: inherit;
	color: #1c1a19;
	background: #ffffff;
	border: 1.5px solid #e2ded9;
	border-radius: 10px;
	outline: none;
}
input.lgn-input::placeholder { color: #b6afab; }
input.lgn-input:focus { border-color: #B21807; box-shadow: 0 0 0 3px rgba(178,24,7,0.12); }
label.lgn-remember { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4a443f; cursor: pointer; user-select: none; }
label.lgn-remember input { width: 17px; height: 17px; accent-color: #B21807; cursor: pointer; margin: 0; }
button.lgn-submit {
	height: 48px;
	margin-top: 4px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	background: #B21807;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s;
}
button.lgn-submit:hover { background: #8A1206; }

/* Struts <html:errors/> output (markup comes from errors.header/errors.prefix keys) */
body.lgn table.error {
	margin-top: 22px;
	width: 100%;
	background: rgba(178,24,7,0.06);
	border: 1px solid rgba(178,24,7,0.28);
	border-radius: 10px;
}
body.lgn .cla_Error { font-size: 13.5px; font-weight: 600; color: #B21807; }

/* Footer */
.lgn-footer {
	background: #ffffff;
	border-top: 1px solid #eceae7;
	padding: 22px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
}
.lgn-footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
body.lgn .lgn-footer-links a { font-size: 13px; font-weight: 600; color: #6b645f; }
body.lgn .lgn-footer-links a:hover { color: #1c1a19; }
.lgn-copyright { font-size: 12.5px; color: #a39d98; }

/* Responsive */
@media (max-width: 900px) {
	.lgn-header { flex-direction: column; gap: 12px; padding: 16px 20px; }
	.lgn-nav { flex-wrap: wrap; justify-content: center; }
	.lgn-main { grid-template-columns: 1fr; }
	.lgn-hero { display: none; }
	.lgn-panel { padding: 40px 20px; }
	.lgn-footer { flex-direction: column; justify-content: center; text-align: center; padding: 18px 20px; }
	.lgn-footer-links { justify-content: center; }
}
