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

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
}

body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
	animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
	0%, 100% { transform: translateX(0) translateY(0); }
	25% { transform: translateX(-20px) translateY(-10px); }
	50% { transform: translateX(20px) translateY(10px); }
	75% { transform: translateX(-10px) translateY(20px); }
}

.register-container {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	padding: 48px 40px;
	width: 100%;
	max-width: 480px;
	box-shadow: 
		0 32px 64px rgba(0, 0, 0, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.05);
	position: relative;
	z-index: 1;
	animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.register-header {
	text-align: center;
	margin-bottom: 32px;
}

.register-icon {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #667eea66, #764ba2b3);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
	animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

.register-icon::before {
	content: '👤';
	font-size: 28px;
}

.register-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

.register-subtitle {
	font-size: 16px;
	color: #6b7280;
	font-weight: 400;
}

.error-message {
	background: linear-gradient(135deg, #fee2e2, #fecaca);
	border: 1px solid #fca5a5;
	color: #dc2626;
	padding: 16px 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	animation: shakeError 0.5s ease-in-out;
	position: relative;
	overflow: hidden;
}

.error-message::before {
	content: '⚠️';
	margin-right: 8px;
}

.success-message {
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	border: 1px solid #6ee7b7;
	color: #065f46;
	padding: 16px 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	animation: slideDown 0.5s ease-in-out;
	position: relative;
	overflow: hidden;
}

.success-message::before {
	content: '✅';
	margin-right: 8px;
}

@keyframes shakeError {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-8px); }
	75% { transform: translateX(8px); }
}

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

.form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.form-group {
	flex: 1;
	margin-bottom: 20px;
	position: relative;
}

.form-group.full-width {
	flex: none;
	width: 100%;
}

.form-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	letter-spacing: 0.01em;
}

.form-input {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 400;
	background: #ffffff;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
}

.form-input:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
	transform: translateY(-2px);
}

.form-input::placeholder {
	color: #9ca3af;
}

.password-strength {
	margin-top: 6px;
	font-size: 12px;
	color: #6b7280;
}

.password-strength.weak {
	color: #dc2626;
}

.password-strength.medium {
	color: #d97706;
}

.password-strength.strong {
	color: #059669;
}

.register-button {
	width: 100%;
	padding: 18px 24px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	letter-spacing: 0.02em;
	margin-top: 8px;
}

.register-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.register-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.register-button:hover::before {
	left: 100%;
}

.register-button:active {
	transform: translateY(0);
}

.login-link {
	text-align: center;
	margin-top: 24px;
	padding: 16px;
	background: rgba(102, 126, 234, 0.05);
	border-radius: 12px;
	font-size: 14px;
	color: #6b7280;
}

.login-link a {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.login-link a:hover {
	color: #4f46e5;
}

/* Responsive Design */
@media (max-width: 560px) {
	.form-row {
		flex-direction: column;
		gap: 0;
	}
	
	.register-container {
		padding: 32px 24px;
		border-radius: 20px;
	}

	.register-title {
		font-size: 24px;
	}

	.register-subtitle {
		font-size: 14px;
	}
}

/* Loading state */
.register-button.loading {
	pointer-events: none;
	opacity: 0.8;
}

.register-button.loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	margin: auto;
	border: 2px solid transparent;
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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