/**
 * SmartSend Africa - Modern UI Styles
 * Modern, responsive design for login and dashboard
 */

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

/* Hide navbar on login page */
.navbar {
	display: none !important;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	background: #fff;
	min-height: 100vh;
	overflow-x: hidden;
	margin: 0 !important;
	padding: 0 !important;
}

.container-fluid {
	padding: 0 !important;
	margin: 0 !important;
}

.login-container {
	display: flex;
	min-height: 100vh;
	height: 100vh;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
}

/* Left Column - Image Slider */
.login-left {
	width: 50%;
	height: 100%;
	position: relative;
	background: linear-gradient(135deg, #0c311c 0%, #1a5032 50%, #0c311c 100%);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slider-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(12, 49, 28, 0.9) 0%, rgba(26, 80, 50, 0.8) 50%, rgba(12, 49, 28, 0.9) 100%);
	z-index: 1;
}

.slider-content {
	position: relative;
	z-index: 2;
	padding: 60px;
	color: white;
	max-width: 600px;
	animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.slider-logo {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.slider-logo span {
	color: #bfff00;
	text-shadow: 0 0 30px rgba(191, 255, 0, 0.3);
}

.slider-title {
	font-size: 32px;
	font-weight: 600;
	margin-bottom: 20px;
	line-height: 1.3;
}

.slider-description {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 40px;
}

.slider-features {
	list-style: none;
}

.slider-features li {
	padding: 12px 0;
	font-size: 16px;
	display: flex;
	align-items: center;
}

.slider-features li:before {
	content: '✓';
	display: inline-block;
	width: 24px;
	height: 24px;
	background: #bfff00;
	color: #0c311c;
	border-radius: 50%;
	text-align: center;
	line-height: 24px;
	margin-right: 12px;
	font-weight: bold;
}

.slider-pattern {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0.05;
	background-image:
		repeating-linear-gradient(45deg, transparent, transparent 50px, #bfff00 50px, #bfff00 51px);
	animation: slide 20s linear infinite;
}

@keyframes slide {
	0% { transform: translateX(-50px); }
	100% { transform: translateX(0); }
}

/* Right Column - Form */
.login-right {
	width: 50%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: #fff;
	overflow-y: auto;
}

#wrapper {
	width: 100%;
	max-width: 480px;
	padding: 0;
	background: transparent;
	animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.brand-header {
	text-align: center;
	margin-bottom: 35px;
}

.brand-logo {
	font-size: 32px;
	font-weight: 700;
	color: #0c311c;
	margin-bottom: 8px;
	letter-spacing: -0.5px;
}

.brand-logo span {
	color: #bfff00;
	text-shadow: 0 2px 4px rgba(191, 255, 0, 0.3);
}

.brand-tagline {
	font-size: 14px;
	color: #666;
	font-weight: 400;
}

h2 {
	text-align: center;
	color: #0c311c;
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 10px;
	display: none;
}

.alert {
	padding: 14px 18px;
	border-radius: 12px;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 500;
	animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
}

.alert-danger {
	background: #fee;
	border: 1px solid #fcc;
	color: #c33;
}

.alert-success {
	background: #efe;
	border: 1px solid #cfc;
	color: #3c3;
}

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

.form-group label {
	display: block;
	color: #0c311c;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}

.textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
	width: 100%;
	padding: 18px 20px !important;
	border: 2px solid #e0e0e0 !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	transition: all 0.3s ease !important;
	background: transparent !important;
	color: #0c311c !important;
}

.textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus {
	outline: none;
	border-color: #bfff00 !important;
	background: transparent !important;
	box-shadow: 0 0 0 4px rgba(191, 255, 0, 0.1) !important;
}

.textarea::placeholder, input[type="text"]::placeholder, input[type="password"]::placeholder, input[type="datetime"]::placeholder, input[type="datetime-local"]::placeholder, input[type="date"]::placeholder, input[type="month"]::placeholder, input[type="time"]::placeholder, input[type="week"]::placeholder, input[type="number"]::placeholder, input[type="email"]::placeholder, input[type="url"]::placeholder, input[type="search"]::placeholder, input[type="tel"]::placeholder, input[type="color"]::placeholder, .uneditable-input::placeholder {
	color: #999 !important;
}

.btn {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #bfff00 0%, #a3dd00 100%);
	color: #0c311c;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(191, 255, 0, 0.3);
	margin-top: 8px;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(191, 255, 0, 0.4);
	background: linear-gradient(135deg, #d0ff20 0%, #b4ee00 100%);
}

.btn:active {
	transform: translateY(0);
}

.btn i {
	margin-right: 8px;
}

.forgot-link {
	text-align: center;
	margin-top: 20px;
}

.forgot-link a {
	color: #0c311c;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.forgot-link a:hover {
	color: #bfff00;
	text-decoration: underline;
}

.footer-text {
	text-align: center;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid #eee;
	color: #888;
	font-size: 13px;
}

/* Modal styles */
.modal {
	background: rgba(12, 49, 28, 0.85);
	backdrop-filter: blur(8px);
	overflow-y: auto !important;
}

.modal .well {
	background: white;
	border-radius: 20px;
	padding: 40px;
	border: none;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	margin: 40px auto;
}

#forgot-form {
	width: auto !important;
	max-width: 600px !important;
	height: auto !important;
	min-height: auto !important;
	overflow: visible !important;
	margin: 60px auto !important;
	left: 50% !important;
	margin-left: -300px !important;
}

#forgot-form .well {
	padding: 40px;
}

#forgot-form .modal-body {
	padding: 30px;
}

.modal h2 {
	display: block;
	margin-bottom: 24px;
}

.modal-header {
	background: #f8f8f8;
	border-radius: 20px 20px 0 0;
	padding: 24px 30px;
	border-bottom: 1px solid #eee;
}

.modal-header h3 {
	color: #0c311c;
	font-size: 20px;
	font-weight: 600;
	margin: 0;
}

.modal-body {
	padding: 30px;
	color: #333;
	line-height: 1.6;
}

.modal-footer {
	background: #f8f8f8;
	border-radius: 0 0 20px 20px;
	padding: 20px 30px;
	border-top: 1px solid #eee;
}

.btn-inverse {
	background: #0c311c;
	color: #bfff00;
}

.btn-inverse:hover {
	background: #1a5032;
	color: #bfff00;
}

#password-sent {
	width: auto !important;
	max-width: 600px !important;
	margin: 60px auto !important;
	left: 50% !important;
	margin-left: -300px !important;
}

/* Responsive Design */
@media (max-width: 992px) {
	.login-left {
		display: none;
	}

	.login-right {
		width: 100%;
		min-height: 100vh;
		background: linear-gradient(135deg, #0c311c 0%, #1a5032 50%, #0c311c 100%);
	}

	#wrapper {
		padding: 20px;
	}

	.brand-header .brand-logo,
	.brand-header .brand-tagline,
	.form-group label,
	.footer-text,
	.forgot-link a {
		color: white !important;
	}

	.textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
		background: rgba(255, 255, 255, 0.15) !important;
		border-color: rgba(255, 255, 255, 0.3) !important;
		color: white !important;
	}

	.textarea::placeholder, input[type="text"]::placeholder, input[type="password"]::placeholder, input[type="datetime"]::placeholder, input[type="datetime-local"]::placeholder, input[type="date"]::placeholder, input[type="month"]::placeholder, input[type="time"]::placeholder, input[type="week"]::placeholder, input[type="number"]::placeholder, input[type="email"]::placeholder, input[type="url"]::placeholder, input[type="search"]::placeholder, input[type="tel"]::placeholder, input[type="color"]::placeholder, .uneditable-input::placeholder {
		color: rgba(255, 255, 255, 0.6) !important;
	}

	.textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus {
		background: rgba(255, 255, 255, 0.2) !important;
		border-color: #bfff00 !important;
		color: white !important;
	}

	.alert {
		background: rgba(255, 255, 255, 0.95) !important;
	}

	#forgot-form {
		margin-left: -250px !important;
		max-width: 500px !important;
	}

	#password-sent {
		margin-left: -250px !important;
		max-width: 500px !important;
	}
}

@media (max-width: 576px) {
	.login-right {
		padding: 20px;
	}

	.brand-logo {
		font-size: 28px;
	}

	.textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
		font-size: 16px !important; /* Prevents zoom on iOS */
		padding: 16px 18px !important;
	}

	#forgot-form {
		margin-left: -45% !important;
		width: 90% !important;
		max-width: 90% !important;
	}

	#password-sent {
		margin-left: -45% !important;
		width: 90% !important;
		max-width: 90% !important;
	}
}
