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

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.container {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	padding: 40px;
	width: 100%;
	max-width: 400px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.tabs {
	display: flex;
	margin-bottom: 30px;
	border-radius: 10px;
	overflow: hidden;
	background: #f8f9fa;
}

.tab {
	flex: 1;
	padding: 15px;
	text-align: center;
	cursor: pointer;
	border: none;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	color: #6c757d;
}

.tab.active {
	background: #667eea;
	color: white;
}

.tab:hover:not(.active) {
	background: #e9ecef;
}

.form-container {
	position: relative;
}

.form {
	display: none;
}

.form.active {
	display: block;
}

.form-group {
	margin-bottom: 25px;
	position: relative;
}

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

.form-group input {
	width: 100%;
	padding: 15px;
	border: 2px solid #e9ecef;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s ease;
	background: white;
}

.form-group input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.spinner {
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top: 2px solid white;
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.alert {
	padding: 15px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-weight: 500;
	animation: slideIn 0.3s ease;
}

.alert-success {
	background: #d1edff;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.welcome-message {
	text-align: center;
	padding: 40px 20px;
}

.welcome-message h2 {
	color: #667eea;
	margin-bottom: 10px;
	font-size: 24px;
}

.welcome-message p {
	color: #6c757d;
	font-size: 16px;
}

.htmx-request .loading {
	display: block;
}

.htmx-request .btn-text {
	opacity: 0;
}
