﻿.login-container {
	max-width: 400px;
	margin: 0 auto;
	padding: 20px;
}

.logo {
	max-height: 80px;
	width: auto;
}

.card {
	border: none;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.95);
}

.card-body {
	padding: 2rem;
}

.form-control {
	border-radius: 10px;
	border: 2px solid #e9ecef;
	padding: 12px 16px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.form-control:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.is-invalid {
	border-color: #dc3545;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
	border-color: #28a745;
	box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group-text {
	border-radius: 10px 0 0 10px;
	border: 2px solid #e9ecef;
	border-right: none;
	background: #f8f9fa;
	color: #6c757d;
}

.input-group .form-control {
	border-radius: 0 10px 10px 0;
	border-left: none;
}

.toggle-password {
	border-radius: 0 10px 10px 0;
	border: 2px solid #e9ecef;
	border-left: none;
	background: #f8f9fa;
	color: #6c757d;
	transition: all 0.3s ease;
}

.toggle-password:hover {
	background: #e9ecef;
	color: #495057;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 10px;
	padding: 12px 24px;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-primary:disabled {
	background: #6c757d;
	transform: none;
	box-shadow: none;
}

.btn-outline-secondary {
	border-radius: 10px;
	border: 2px solid #6c757d;
	padding: 8px 16px;
	transition: all 0.3s ease;
}

.form-check-input:checked {
	background-color: #667eea;
	border-color: #667eea;
}

.form-check-input:focus {
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alert Styles */
.alert {
	border-radius: 10px;
	border: none;
	margin-bottom: 1.5rem;
}

.alert-success {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	color: #155724;
}

.alert-danger {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	color: #721c24;
}

.alert-warning {
	background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
	color: #856404;
}

.alert-info {
	background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
	color: #0c5460;
}

/* Loading Animation */
.spinner-border-sm {
	width: 1rem;
	height: 1rem;
}

/* Password Strength Meter */
.password-strength {
	margin-top: 0.5rem;
}

.password-strength .progress {
	height: 4px;
	border-radius: 2px;
	background-color: #e9ecef;
}

.password-strength .progress-bar {
	transition: all 0.3s ease;
	border-radius: 2px;
}

/* Form Validation Feedback */
.invalid-feedback {
	display: block;
	font-size: 0.875rem;
	color: #dc3545;
	margin-top: 0.25rem;
}

.valid-feedback {
	display: block;
	font-size: 0.875rem;
	color: #28a745;
	margin-top: 0.25rem;
}

/* Link Styles */
a {
	color: #667eea;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #764ba2;
	text-decoration: underline;
}

/* Footer */
.footer {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	color: rgba(255, 255, 255, 0.8);
	padding: 1rem 0;
	margin-top: auto;
}

.footer a {
	color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 576px) {
	.login-container {
		padding: 10px;
		margin-top: 20px;
	}

	.card-body {
		padding: 1.5rem;
	}

	.logo {
		max-height: 60px;
	}

	h1 {
		font-size: 1.5rem;
	}
}

/* Security Indicators */
.security-warning {
	background: #ff6b6b;
	color: white;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 1rem;
	text-align: center;
	font-weight: 500;
}

/* Animation Classes */
.fade-in {
	animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.slide-in {
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		transform: translateX(-100%);
	}

	to {
		transform: translateX(0);
	}
}

/* Form Submitting State */
.submitting .form-control {
	pointer-events: none;
	opacity: 0.7;
}

.submitting .btn:not(:disabled) {
	pointer-events: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.card {
		background: white;
		border: 2px solid #000;
	}

	.form-control {
		border: 2px solid #000;
	}

	.btn-primary {
		background: #000;
		color: #fff;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.btn-primary:hover {
		transform: none;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	body {
		background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	}

	.card {
		background: rgba(44, 62, 80, 0.95);
		color: #ecf0f1;
	}

	.form-control {
		background: rgba(52, 73, 94, 0.8);
		border-color: #5a6c7d;
		color: #ecf0f1;
	}

		.form-control::placeholder {
			color: #95a5a6;
		}

	.input-group-text,
	.toggle-password {
		background: rgba(52, 73, 94, 0.8);
		border-color: #5a6c7d;
		color: #ecf0f1;
	}
}

/* Focus Visible for Accessibility */
.form-control:focus-visible,
.btn:focus-visible {
	outline: 3px solid #667eea;
	outline-offset: 2px;
}

/* Print Styles */
@media print {
	body {
		background: white !important;
		color: black !important;
	}

	.card {
		background: white !important;
		box-shadow: none !important;
		border: 1px solid #000 !important;
	}

	.btn {
		display: none !important;
	}
}
