* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	font-family: 'Montserrat', sans-serif;
	background-color: #ffffff;
}

body {
	line-height: 1.6;
	color: #000;
}

.container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Left panel - background image */
.left-panel {
	display: none;
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	width: 45%;
}

.left-panel img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Right panel - form */
.right-panel {
	flex: 1;
	background-color: white;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: relative;
}

/* Logo positioning */
.logo-container {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 10;
}

.logo-container img {
	width: 112px;
	object-fit: contain;
}

/* Form content wrapper */
.form-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 5rem 2rem;
}

.form-content {
	width: 100%;
	max-width: 580px;
	margin: 0 auto;
}

/* Heading section */
.heading-section {
	text-align: center;
	margin-bottom: 2rem;
}

.welcome-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 3.5rem;
	font-style: italic;
	color: #78A346;
	line-height: 1.2;
	margin-bottom: 0.75rem;
	white-space: nowrap;
}

.welcome-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	color: #000;
	font-style: italic;
}

/* Role selector buttons */
.role-selector {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 2.5rem;
}

.role-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: 0.5rem;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	background-color: white;
	border: 2px solid #E9ECEF;
	color: #000;
}

.role-button.active {
	background-color: #315E26;
	color: white;
	border-color: #315E26;
}

.role-button:hover {
	transform: translateY(-2px);
}

.role-button svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
}

.role-button img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: brightness(0.5);
}

.role-button.active img {
	filter: brightness(1) invert(1);
}

/* Form inputs */
.login-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.input-field {
	display: flex;
	align-items: center;
	gap: 1rem;
	background-color: white;
	border-radius: 1rem;
	padding: 1.25rem;
	box-shadow: 0 4px 4px 0 #315E26;
}

.input-field svg {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	stroke: #292D32;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.input-field input {
	flex: 1;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	border: none;
	background: transparent;
	outline: none;
	color: #292D32;
	padding: 0;
}

.input-field input::placeholder {
	color: #ADB5BD;
}

.toggle-password {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ADB5BD;
	transition: color 0.3s ease;
}

.toggle-password:hover {
	color: #315E26;
}

.toggle-password svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

/* Checkbox and forgot password row */
.form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	color: #000;
}

.custom-checkbox {
	width: 20px;
	height: 20px;
	border: 2px solid #6C757D;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	background-color: white;
	flex-shrink: 0;
}

.custom-checkbox.checked {
	background-color: #315E26;
	border-color: #315E26;
}

.custom-checkbox svg {
	width: 12px;
	height: 10px;
	stroke: white;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.forgot-password {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	color: #000;
	font-style: italic;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.3s ease;
	text-decoration: none;
}

.forgot-password:hover {
	color: #315E26;
}

/* Login button */
.form-button-container {
	display: flex;
	justify-content: center;
	margin-top: 0.5rem;
}

.login-button {
	background-color: #315E26;
	color: white;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	padding: 1rem 4rem;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	max-width: 320px;
}

.login-button:hover {
	background-color: #264a1e;
	transform: translateY(-2px);
}

.login-button:active {
	transform: translateY(0);
}

/* Desktop layout */
@media (min-width: 768px) {
	.container {
		flex-direction: row;
	}

	.left-panel {
		display: block;
	}

	.form-wrapper {
		padding: 5rem 4rem;
	}

	.logo-container {
		top: 2rem;
		right: 2rem;
	}

	.logo-container img {
		width: 144px;
	}

	.welcome-title {
		font-size: 4.25rem;
	}

	.welcome-subtitle {
		font-size: 1.125rem;
	}

	.role-button {
		font-size: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.left-panel {
		width: 42%;
	}

	.form-wrapper {
		padding: 5rem 5rem;
	}

	.logo-container img {
		width: 160px;
	}

	.welcome-title {
		font-size: 4.375rem;
	}
}

/* Mobile optimizations */
@media (max-width: 640px) {
	.form-wrapper {
		padding: 3rem 2rem;
	}

	.welcome-title {
		font-size: 2.5rem;
	}

	.welcome-subtitle {
		font-size: 0.875rem;
	}

	.role-button {
		font-size: 1rem;
		padding: 0.5rem 1rem;
	}

	.role-selector {
		gap: 0.5rem;
	}

	.input-field {
		padding: 1rem;
		gap: 0.75rem;
	}

	.form-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.forgot-password {
		align-self: flex-end;
		margin-top: -0.5rem;
	}

	.logo-container {
		top: 1rem;
		right: 1rem;
	}

	.logo-container img {
		width: 100px;
	}

	.login-button {
		font-size: 1rem;
		padding: 0.75rem 2rem;
	}
}

/* Fix CP1G-214/CP1G-265: horizontal overflow at 768px viewport */
html, body { overflow-x: hidden; }
@media (min-width: 768px) and (max-width: 900px) {
  .form-wrapper { padding: 4rem 2rem !important; }
  .left-panel { width: 38% !important; }
}
