/* ConnectSTL Custom Login Form Styles */

.connectstl-login-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-container {
	width: 100%;
	max-width: 450px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 50px 40px;
	font-family: Arial, sans-serif;
}

.login-logo {
	text-align: center;
	margin-bottom: 40px;
}

.login-logo h1 {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: #333333;
	text-align: center;
}

.login-logo .subtitle {
	margin: 8px 0 0 0;
	font-size: 14px;
	color: #666666;
	text-align: center;
}

.connectstl-form.login-form {
	width: 100%;
}

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

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

.form-group .required {
	color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="password"] {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 12px 15px;
	border: 1px solid #cccccc;
	border-radius: 6px;
	background-color: #ffffff;
	color: #333333;
	font-size: 14px;
	font-family: Arial, sans-serif;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder {
	color: #999999;
}

/* Checkboxes */
.form-group.checkbox {
	margin-bottom: 20px;
}

.form-group.checkbox label {
	display: flex;
	align-items: center;
	margin-bottom: 0;
	font-weight: 400;
	cursor: pointer;
	gap: 8px;
}

.form-group.checkbox input[type="checkbox"] {
	margin: 0;
	width: auto;
	height: auto;
	cursor: pointer;
	flex-shrink: 0;
}

/* Messages */
.form-message {
	padding: 12px 15px;
	margin-bottom: 20px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.form-message p {
	margin: 0;
}

.form-message.success {
	background-color: #e8f5e9;
	border: 1px solid #4caf50;
	color: #2e7d32;
}

.form-message.error {
	background-color: #ffebee;
	border: 1px solid #f44336;
	color: #c62828;
}

/* Submit button */
.btn-submit {
	display: block;
	width: 100%;
	padding: 14px 30px;
	margin-top: 10px;
	margin-bottom: 20px;
	background-color: #0066cc;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	font-family: Arial, sans-serif;
	cursor: pointer;
	transition: background-color 0.2s;
}

.btn-submit:hover {
	background-color: #0052a3;
}

.btn-submit:active {
	background-color: #003d7a;
}

.btn-submit:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Form footer */
.form-footer {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}

.form-footer p {
	margin: 12px 0;
	font-size: 14px;
	color: #666666;
}

.form-footer a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.2s;
	font-weight: 500;
}

.form-footer a:hover {
	color: #0052a3;
	text-decoration: underline;
}

.form-footer a:focus {
	outline: 2px solid #0066cc;
	outline-offset: 2px;
	border-radius: 2px;
}

.forgot-password {
	margin-top: 15px;
	margin-bottom: 15px;
}

.create-account {
	margin-bottom: 0;
}

/* Already logged in message */
.already-logged-in {
	background: white;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.already-logged-in p {
	margin: 0;
	font-size: 16px;
	color: #666666;
	line-height: 1.6;
}

.already-logged-in a {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}

.already-logged-in a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
	.login-container {
		padding: 30px 20px;
	}

	.login-logo h1 {
		font-size: 28px;
	}

	.login-logo .subtitle {
		font-size: 13px;
	}

	.form-group input[type="text"],
	.form-group input[type="password"] {
		font-size: 16px; /* Prevents zoom on iOS */
	}
}
