/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

/*===== RESET =====*/
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
}

body {
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	color: #333;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

/* =========================================
   WRAPPER — two-panel split
   ========================================= */
.login-wrapper {
	display: flex;
	min-height: 100vh;
}

/* =========================================
   LEFT PANEL — dark branding
   ========================================= */
.login-brand {
	position: relative;
	width: 42%;
	background: linear-gradient(160deg, #1e1e1e 0%, #111 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.login-brand__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 40px;
}

.login-brand__logo {
	width: 220px;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 28px;
	filter: drop-shadow(0 4px 24px rgba(60, 169, 77, 0.3));
}

.login-brand__name {
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.login-brand__name span {
	font-weight: 400;
	color: #3ca94d;
}

.login-brand__tagline {
	font-size: 0.9rem;
	color: #888;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.login-brand__tagline i {
	font-size: 1.1rem;
	color: #3ca94d;
}

/* Decorative gear pattern (SVG background) */
.login-brand__gears {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23ffffff'%3E%3Cpath d='M50 30a20 20 0 1 0 0 40 20 20 0 0 0 0-40zm0 30a10 10 0 1 1 0-20 10 10 0 0 1 0 20z'/%3E%3Cpath d='M53 10h-6v8.1A22.1 22.1 0 0 0 38.2 22L32 17.4l-3.5 5 6.1 4.6a22.3 22.3 0 0 0-2.5 8.5H24v6h8.1c.3 3 1.2 5.9 2.5 8.5l-6.1 4.6 3.5 5 6.2-4.6A22.1 22.1 0 0 0 47 58.9V67h6v-8.1a22.1 22.1 0 0 0 8.8-3.9l6.2 4.6 3.5-5-6.1-4.6a22.3 22.3 0 0 0 2.5-8.5H76v-6h-8.1a22.3 22.3 0 0 0-2.5-8.5l6.1-4.6-3.5-5-6.2 4.6A22.1 22.1 0 0 0 53 18.1V10z'/%3E%3C/svg%3E");
	background-size: 180px 180px;
	background-position: bottom right;
	background-repeat: repeat;
}

/* =========================================
   RIGHT PANEL — form area
   ========================================= */
.login-form-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	background: #fafafa;
}

.login-form-container {
	width: 100%;
	max-width: 400px;
}

/* =========================================
   FORM HEADER
   ========================================= */
.login-form__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 6px;
}

.login-form__subtitle {
	font-size: 0.875rem;
	color: #888;
	margin-bottom: 36px;
}

/* =========================================
   FORM FIELDS
   ========================================= */
.login-field {
	margin-bottom: 22px;
}

.login-field__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #666;
	margin-bottom: 8px;
}

.login-field__input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	padding: 0 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field__input-wrap:focus-within {
	border-color: #3ca94d;
	box-shadow: 0 0 0 3px rgba(60, 169, 77, 0.12);
}

.login-field__input-wrap--error {
	border-color: #dc3545;
}

.login-field__input-wrap--error:focus-within {
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.login-field__icon {
	font-size: 1.25rem;
	color: #aaa;
	flex-shrink: 0;
	transition: color 0.2s;
}

.login-field__input-wrap:focus-within .login-field__icon {
	color: #3ca94d;
}

.login-field__input-wrap--error .login-field__icon {
	color: #dc3545;
}

.login-field__input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: 'Open Sans', sans-serif;
	font-size: 0.938rem;
	color: #1a1a1a;
	padding: 14px 0;
}

.login-field__input::placeholder {
	color: #bbb;
	font-weight: 400;
}

.login-field__error {
	display: block;
	margin-top: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #dc3545;
	padding-left: 4px;
}

/* =========================================
   SUBMIT BUTTON
   ========================================= */
.login-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 24px;
	margin-top: 32px;
	background: #3ca94d;
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.3px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(60, 169, 77, 0.3);
}

.login-btn:hover {
	background: #2e8c3e;
	box-shadow: 0 6px 20px rgba(60, 169, 77, 0.4);
}

.login-btn:active {
	transform: scale(0.98);
}

.login-btn__icon {
	font-size: 1.25rem;
	transition: transform 0.2s;
}

.login-btn:hover .login-btn__icon {
	transform: translateX(3px);
}

/* =========================================
   FOOTER
   ========================================= */
.login-form__footer {
	text-align: center;
	margin-top: 40px;
	font-size: 0.78rem;
	color: #bbb;
}

/* =========================================
   RESPONSIVE — mobile stacking
   ========================================= */
@media screen and (max-width: 900px) {
	.login-wrapper {
		flex-direction: column;
	}

	.login-brand {
		width: 100%;
		padding: 40px 24px;
	}

	.login-brand__logo {
		width: 140px;
		margin-bottom: 16px;
	}

	.login-brand__name {
		font-size: 1.3rem;
	}

	.login-brand__gears {
		background-size: 120px 120px;
	}

	.login-form-panel {
		padding: 32px 20px 48px;
	}
}

@media screen and (max-width: 480px) {
	.login-brand {
		padding: 28px 16px;
	}

	.login-brand__logo {
		width: 110px;
		margin-bottom: 12px;
	}

	.login-brand__name {
		font-size: 1.15rem;
	}

	.login-brand__tagline {
		font-size: 0.8rem;
	}

	.login-form__title {
		font-size: 1.4rem;
	}

	.login-form-container {
		max-width: 100%;
	}
}
