/* Sow Easy Brand Login Design CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: #f8f9fa;
	min-height: 100vh;
	display: flex;
}

.container { display: flex; width: 100%; min-height: 100vh; }

.left-panel {
	flex: 1;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.right-panel {
	flex: 1;
	background: #4d5494;
	position: relative;
	overflow: hidden;
}

.pattern {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(72, 182, 156, 0.1) 0px,
		rgba(72, 182, 156, 0.1) 2px,
		transparent 2px,
		transparent 20px
	);
}

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

.logo { text-align: center; margin-bottom: 40px; display: contents !important;}

.logo-icon {
	width: 100%;
	background: #fff;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.logo-icon img { width: auto; height: auto; border-radius: 8px; }

.welcome-title {
	font-size: 28px;
	font-weight: 600;
	color: #3c423c;
	margin-bottom: 8px;
	text-align: center;
	font-family: 'Poppins', sans-serif;
}

.welcome-subtitle {
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 32px;
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
}

.welcome-subtitle a { color: #4d5494; text-decoration: none; }
.welcome-subtitle a:hover { text-decoration: underline; }

.custom-login-error {
	background-color: #fef2f2;
	color: #ea5035;
	border: 1px solid #ea5035;
	padding: 10px 15px;
	margin-bottom: 15px;
	border-radius: 6px;
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
}

.form-group { margin-bottom: 20px; }

.form-group label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #3c423c;
	margin-bottom: 6px;
	font-family: 'Poppins', sans-serif;
}

.form-group input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.2s ease;
	background: white;
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
}

.form-group input:focus {
	outline: none;
	border-color: #4d5494;
	box-shadow: 0 0 0 3px rgba(77, 84, 148, 0.1);
}

.form-group input.error {
	border-color: #ea5035;
	box-shadow: 0 0 0 3px rgba(234, 80, 53, 0.1);
}

.password-container { position: relative; }

.password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	padding: 4px;
	font-size: 16px;
}

.password-toggle:hover { color: #3c423c; }

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #3c423c;
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
}

.remember-me input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #4d5494;
}

.forgot-password {
	color: #4d5494;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
}

.forgot-password:hover { text-decoration: underline; }

.login-btn {
	width: 100%;
	background: #4d5494;
	color: white;
	border: none;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Poppins', sans-serif;
}

.login-btn:hover { 
	background: #3c423c;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(77, 84, 148, 0.3);
}

.login-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.divider {
	text-align: center;
	margin: 24px 0;
	position: relative;
	color: #6b7280;
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
}

.divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e5e7eb;
}

.divider span { background: white; padding: 0 16px; }

.support-btn {
	width: 100%;
	background: white;
	color: #3c423c;
	border: 1px solid #48b69c;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
}

.support-btn:hover { 
	background: #48b69c; 
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(72, 182, 156, 0.3);
}

.error-message {
	display: none;
	background-color: #fef2f2;
	color: #ea5035;
	border: 1px solid #ea5035;
	padding: 12px 18px 12px 44px;
	margin-bottom: 18px;
	border-radius: 8px;
	font-size: 15px;
	position: relative;
	box-shadow: 0 2px 8px rgba(234, 80, 53, 0.04);
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Poppins', sans-serif;
}

.error-message::before {
	content: "\26A0"; /* Warning icon */
	position: absolute;
	left: 16px;
	font-size: 18px;
	color: #ea5035;
}

.success-message {
	display: none;
	background-color: #f0fdf4;
	color: #48b69c;
	border: 1px solid #48b69c;
	padding: 12px 18px 12px 44px;
	margin-bottom: 18px;
	border-radius: 8px;
	font-size: 15px;
	position: relative;
	box-shadow: 0 2px 8px rgba(72, 182, 156, 0.04);
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Poppins', sans-serif;
	display: none;
}

.success-message::before {
	content: "\2714"; /* Checkmark icon */
	position: absolute;
	left: 16px;
	font-size: 18px;
	color: #48b69c;
}

.field-error-message {
	background: none;
	color: #ea5035;
	border: none;
	padding: 0 0 0 24px;
	margin: 4px 0 0 0;
	font-size: 13px;
	position: relative;
	display: flex;
	align-items: center;
	font-family: 'Poppins', sans-serif;
}

.field-error-message::before {
	content: "\26A0";
	position: absolute;
	left: 0;
	font-size: 14px;
	color: #ea5035;
}

.spinner {
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	animation: spin 1s linear infinite;
	display: none;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.brand-panel {
	position: absolute;
	bottom: 40px;
	left: 40px;
	right: 40px;
	text-align: center;
	color: white;
}

.brand-title { 
	font-size: 32px; 
	font-weight: 700; 
	margin-bottom: 8px;
	font-family: 'Poppins', sans-serif;
	text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-subtitle { 
	font-size: 16px; 
	opacity: 0.9;
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Brand accent elements */
.login-form::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, #ea5035, #fbbe40, #48b69c, #4d5494);
	border-radius: 2px;
}

.login-form {
	position: relative;
}

/* Enhanced focus states with brand colors */
.form-group input:focus {
	border-color: #48b69c;
	box-shadow: 0 0 0 3px rgba(72, 182, 156, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
	.container { flex-direction: column; }
	.right-panel { display: none; }
	.left-panel { padding: 24px; }
	.login-form { max-width: none; }
}

#errorEmail,
#emailError {
	display: none;
}

#passwordError {
	display: none;
}