/* Shared workspace background and typography */
body {
	background-color: #f0f4f8;
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	justify-content: center;
}

/* Error/Notification message styling */
span {
	color: #ef4444; /* Standard alert red from dashboard */
	font-size: 0.85rem;
	font-weight: 600;
	display: block;
	margin-bottom: 15px;
	text-align: center;
}

/* Main Login Card - matches the table row look */
#login {
	width: 320px;
	background-color: #ffffff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	border-radius: 10px;
	margin-top: 100px;
	overflow: hidden; /* Ensures header corner radius looks right */
	border: 1px solid #edf2f7;
}

/* Header Bar - matches table standard thead */
h2 {
	background-color: #2c3e50;
	color: #ffffff;
	text-align: center;
	margin: 0;
	padding: 16px;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Inner Form Padding Container */
form {
	padding: 25px 20px;
}

/* Modern text input fields */
input[type=text] {
	width: 100%;
	padding: 10px 12px;
	margin-top: 6px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #4a5568;
	background-color: #f8fafc;
	box-sizing: border-box;
	transition: all 0.2s ease-in-out;
}

/* Target the code field to add a much larger gap before the button */
#code {
	margin-bottom: 35px; /* Increased from 20px to push the button down */
}

/* Subtle focus ring on inputs */
input[type=text]:focus {
	outline: none;
	border-color: #3b82f6;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
 
/* Primary Action Button - changed to a lighter slate grey-blue tone */
input[type=submit] {
	width: 100%;
	background-color: #475569; /* Soft Slate Blue */
	color: #ffffff;
	border: none;
	padding: 12px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 6px;
	box-sizing: border-box;
	transition: all 0.15s ease-in-out;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Hover states matching table styles */
input[type=submit]:hover {
	background-color: #334155; /* Darker Slate on hover */
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

input[type=submit]:active {
	transform: translateY(0);
}
