@font-face {
	font-family: 'Montserrat';
	src: url(../fonts/Montserrat-Regular.ttf);
}

:root {
	--primary-color: #ff6b35;
	--primary-dark: #e85a28;
	--primary-light: #ff8555;
}

body, html {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
	background: #f5f7fa;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

.login-container {
	width: 100%;
	max-width: 1000px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.login-wrapper {
	width: 100%;
	max-width: 450px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.systems-wrapper {
	width: 100%;
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

/* Header */
.login-header {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
	padding: 24px 40px 32px;
	text-align: center;
	color: white;
	position: relative;
}

.login-logo {
	margin-bottom: 12px;
}

.login-logo img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-title {
	font-size: 26px;
	font-weight: 700;
	margin: 10px 0 4px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
	font-size: 13px;
	opacity: 0.95;
	font-weight: 400;
}

/* Form Panel */
.login-form-panel {
	padding: 24px 32px;
	margin-top: -16px;
	background: white;
	border-radius: 20px 20px 0 0;
	position: relative;
}

.error-message {
	background: #fee2e2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	color: #991b1b;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.error-message i {
	font-size: 16px;
}

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

.form-group label {
	display: block;
	margin-bottom: 6px;
	color: #374151;
	font-weight: 500;
	font-size: 13px;
}

.form-group label i {
	color: var(--primary-color);
	margin-right: 6px;
	width: 16px;
}

.password-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-input-wrapper input {
	padding-right: 45px;
	width: 100%;
}

.toggle-password {
	position: absolute;
	right: 1px;
	top: 1px;
	bottom: 1px;
	background: transparent;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	font-size: 15px;
	border-radius: 0 6px 6px 0;
}

.toggle-password:hover {
	color: var(--primary-color);
	background: rgba(255, 107, 53, 0.05);
}

.toggle-password:active {
	transform: scale(0.95);
}

.toggle-password:focus {
	outline: none;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	outline: none;
	transition: all 0.2s ease;
	font-family: 'Montserrat', sans-serif;
	background: white;
	box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-actions {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.btn-login {
	width: 100%;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
	color: white;
	border: none;
	padding: 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
	font-family: 'Montserrat', sans-serif;
}

.btn-login:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}

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

.btn-login i {
	margin-left: 6px;
}

.forgot-password {
	text-align: center;
	color: #6b7280;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s;
}

.forgot-password:hover {
	color: var(--primary-color);
}

/* Systems Section */
.systems-section {
	padding: 28px 32px;
	background: white;
}

.systems-header {
	margin-bottom: 20px;
	text-align: center;
}

.systems-header h3 {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 6px 0;
}

.systems-header p {
	color: #6b7280;
	font-size: 13px;
	margin: 0;
}

.systems-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

.system-card {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 10px;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.system-card:hover {
	transform: translateY(-3px);
	border-color: var(--primary-color);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	background: white;
}

.system-card img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.system-card span {
	color: #374151;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
}

/* Responsive */
@media (max-width: 640px) {
	.login-container {
		padding: 10px;
		gap: 16px;
	}
	
	.login-wrapper,
	.systems-wrapper {
		max-width: 100%;
	}
	
	.login-header {
		padding: 24px 20px 28px;
	}
	
	.login-logo {
		margin-bottom: 10px;
	}
	
	.login-logo img {
		width: 50px;
		height: 50px;
		border: 2px solid rgba(255, 255, 255, 0.3);
	}
	
	.login-title {
		font-size: 22px;
		margin: 8px 0 4px;
	}
	
	.login-subtitle {
		font-size: 12px;
	}
	
	.login-form-panel {
		padding: 20px 18px;
		margin-top: -12px;
	}
	
	.form-group {
		margin-bottom: 12px;
	}
	
	.form-group label {
		font-size: 12px;
		margin-bottom: 5px;
	}
	
	.form-group input,
	.form-group select {
		padding: 9px 11px;
		font-size: 13px;
	}
	
	.form-actions {
		margin-top: 16px;
		gap: 10px;
	}
	
	.btn-login {
		padding: 11px;
		font-size: 13px;
	}
	
	.forgot-password {
		font-size: 12px;
	}
	
	.systems-section {
		padding: 20px 16px;
	}
	
	.systems-header {
		margin-bottom: 16px;
	}
	
	.systems-header h3 {
		font-size: 14px;
	}
	
	.systems-header p {
		font-size: 12px;
	}
	
	.systems-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	
	.system-card {
		padding: 12px 6px;
	}
	
	.system-card img {
		width: 32px;
		height: 32px;
	}
	
	.system-card span {
		font-size: 10px;
	}
}