:root {
    --primary-color: #4a6bff;
    --primary-dark: #3a56cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7a5cff 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.card-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.card-header p {
    opacity: 0.9;
}

.card-body {
    padding: 30px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e4e8;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.25);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--secondary-color);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    margin-right: 10px;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7a5cff 100%);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6a4cef 100%);
    transform: translateY(-2px);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.success-message {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

/* Update your existing CSS - remove the previous language selector styles and replace with this */

.language-selector {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1000;
}

.language-flags {
	display: flex;
	gap: 8px;
	background: rgba(255, 255, 255, 0.9);
	padding: 8px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
}

.flag-btn {
	background: none;
	border: 2px solid transparent;
	border-radius: 6px;
	padding: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
}

.flag-btn:hover {
	background-color: rgba(52, 152, 219, 0.1);
	border-color: rgba(52, 152, 219, 0.3);
	transform: translateY(-2px);
}

.flag-btn.active {
	background-color: rgba(52, 152, 219, 0.2);
	border-color: #3498db;
	box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.flag-icon {
	font-size: 24px;
	line-height: 1;
	user-select: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.language-selector {
		position: relative;
		top: 0;
		right: 0;
		margin-bottom: 20px;
		display: flex;
		justify-content: center;
	}

	.language-flags {
		background: rgba(255, 255, 255, 0.95);
	}

	.flag-btn {
		width: 40px;
		height: 40px;
		padding: 6px;
	}

	.flag-icon {
		font-size: 20px;
	}
}

/* Make sure the container has relative positioning for absolute positioning to work */
.container {
	position: relative;
}

/* Optional: Add a subtle animation when flags are clicked */
.flag-btn:active {
	transform: translateY(0);
	transition: transform 0.1s ease;
}

/* Tooltip styling for flag buttons */
.flag-btn::after {
	content: attr(title);
	position: absolute;
	bottom: -35px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 1001;
}

.flag-btn:hover::after {
	opacity: 1;
}

/* Ensure the language selector doesn't interfere with the main content */
.card {
	margin-top: 20px;
}

@media (max-width: 768px) {
	.card {
		margin-top: 0;
	}
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
}

/* Add these modal styles to your existing login.css */

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal.hidden {
	display: none;
}

.modal-content {
	background: white;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
	margin: 0;
	color: #2c3e50;
}

.modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s;
}

.modal-close:hover {
	background-color: #f0f0f0;
}

.modal-body {
	padding: 1.5rem;
}

.modal-actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 1.5rem;
}

.btn-secondary {
	background-color: #6c757d;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s;
}

.btn-secondary:hover {
	background-color: #5a6268;
}

/* Responsive modal */
@media (max-width: 768px) {
	.modal-content {
		width: 95%;
		margin: 1rem;
	}

	.modal-header {
		padding: 1rem;
	}

	.modal-body {
		padding: 1rem;
	}

	.modal-actions {
		flex-direction: column;
	}

	.modal-actions button {
		width: 100%;
	}
}

