* {
	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: 15px;
	overflow-x: hidden;
	margin: 0;
}

.hide {
	display: none !important;
}

.register-wrapper {
	width: 100%;
	max-width: 1200px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	overflow: hidden;
	display: flex;
	min-height: 600px;
	max-height: 85vh;
}

.register-left {
	flex: 1;
	padding: 20px 30px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow-y: auto;
}

.register-right {
	flex: 1;
	background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	padding: 30px;
	position: relative;
	overflow: hidden;
}

.register-right::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	animation: rotate 20s linear infinite;
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.brand-logo {
	text-align: center;
	margin-bottom: 15px;
}

.brand-logo h1 {
	font-size: 1.8rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 6px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.brand-logo p {
	color: #666;
	font-size: 0.85rem;
}

/* Social Login Styles */
.social-login {
	margin: 15px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.google-login,
.facebook-login {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	background: white;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.85rem;
	font-weight: 500;
	color: #333;
}

.google-login:hover,
.facebook-login:hover {
	border-color: #667eea;
	background: #f8f9ff;
	transform: translateY(-1px);
}

.google-login img,
.facebook-login img {
	width: 18px;
	height: 18px;
	margin-right: 8px;
}

.divider {
	text-align: center;
	margin: 15px 0;
	position: relative;
	color: #666;
	font-size: 0.85rem;
}

.divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e1e5e9;
}

.divider span {
	background: white;
	padding: 0 15px;
	position: relative;
	z-index: 1;
}

.form-row {
	display: flex;
	gap: 15px;
	margin-bottom: 12px;
}

.form-group {
	margin-bottom: 12px;
	flex: 1;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
	font-size: 0.85rem;
}

/* Input fields không có icon */
.form-group > input,
.form-group > select {
	width: 100%;
	padding: 8px 12px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 0.85rem;
	transition: all 0.3s ease;
	background: #fff;
}

.form-group > input:focus,
.form-group > select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Input fields có icon */
.input-group {
	position: relative;
}

.input-group input,
.input-group select {
	width: 100%;
	padding: 8px 12px;
	padding-left: 36px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 0.85rem;
	transition: all 0.3s ease;
	background: #fff;
}

.input-group input:focus,
.input-group select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group .input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	font-size: 0.85rem;
	z-index: 2;
}

.password-toggle {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #666;
	font-size: 0.9rem;
}

.register-button {
	width: 100%;
	padding: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 8px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.register-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.register-button:active {
	transform: translateY(0);
}

.terms-checkbox {
	display: flex;
	align-items: flex-start;
	margin: 10px 0;
	font-size: 0.75rem;
	color: #555;
}

.terms-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	margin-top: 2px;
	accent-color: #667eea;
	appearance: none;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	background: white;
	position: relative;
	cursor: pointer;
}

.terms-checkbox input[type="checkbox"]:checked {
	background: #667eea;
	border-color: #667eea;
}

.terms-checkbox input[type="checkbox"]:checked::after {
	content: '✓';
	position: absolute;
	top: -2px;
	left: 1px;
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.terms-checkbox a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
}

.terms-checkbox a:hover {
	color: #764ba2;
}

.login-link {
	text-align: center;
	margin-top: 10px;
	font-size: 0.8rem;
	color: #555;
}

.login-link a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
}

.login-link a:hover {
	color: #764ba2;
}

.promo-content {
	z-index: 10;
	text-align: center;
	max-width: 450px;
}

.promo-content h2 {
	font-size: 2.2rem;
	margin-bottom: 15px;
	font-weight: 700;
}

.promo-content p {
	font-size: 1rem;
	opacity: 0.9;
	margin-bottom: 25px;
	line-height: 1.4;
}

.features-list {
	text-align: left;
	margin: 20px 0;
}

.feature-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	backdrop-filter: blur(5px);
}

.feature-icon {
	width: 35px;
	height: 35px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	font-size: 1rem;
}

.feature-text {
	flex: 1;
}

.feature-text strong {
	display: block;
	margin-bottom: 2px;
	font-size: 0.9rem;
}

.feature-text small {
	font-size: 0.8rem;
	opacity: 0.8;
}

.testimonial {
	background: rgba(255, 255, 255, 0.1);
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
	backdrop-filter: blur(5px);
}

.testimonial-quote {
	font-style: italic;
	margin-bottom: 12px;
	font-size: 0.85rem;
	line-height: 1.4;
	opacity: 0.9;
}

.testimonial-author {
	display: flex;
	align-items: center;
}

.testimonial-author img {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	margin-right: 10px;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.author-details {
	display: flex;
	flex-direction: column;
}

.author-name {
	font-weight: 600;
	font-size: 0.85rem;
}

.author-role {
	font-size: 0.75rem;
	opacity: 0.8;
}

.decoration-circle {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
	width: 300px;
	height: 300px;
	top: -100px;
	right: -100px;
}

.circle-2 {
	width: 200px;
	height: 200px;
	bottom: 50px;
	left: -50px;
}

.help-button {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	transition: background-color 0.2s ease;
}

.help-button:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

/* Password Strength Indicator */
.password-strength {
	margin-top: 8px;
}

.strength-bar {
	width: 100%;
	height: 4px;
	background: #e5e7eb;
	border-radius: 2px;
	overflow: hidden;
}

.strength-fill {
	height: 100%;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.password-strength::after {
	content: attr(data-strength);
	display: block;
	font-size: 0.75rem;
	margin-top: 4px;
	color: #666;
}

/* Focus States for Icons */
.input-group.focused .input-icon {
	color: #667eea;
}

.input-group.focused input,
.input-group.focused select {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Additional Animations */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tab-content.active {
	animation: slideInUp 0.4s ease;
}

/* Form Focus States */
.form-group:focus-within label {
	color: #667eea;
	transform: translateY(-1px);
	transition: all 0.3s ease;
}

/* Better Button States */
.register-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

.register-button:disabled:hover {
	transform: none !important;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Alert Messages */
.alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 15px;
	font-size: 0.85rem;
	font-weight: 500;
	animation: slideInDown 0.3s ease;
}

.alert-success {
	background: #d1f2eb;
	color: #0d5142;
	border: 1px solid #82e6d1;
}

.alert-error {
	background: #fadbd8;
	color: #922b21;
	border: 1px solid #f1948a;
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Loading States */
.loading .register-button {
	background: #ccc !important;
	cursor: not-allowed;
}

.loading .register-button .spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s ease-in-out infinite;
	margin-right: 8px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	body {
		padding: 10px;
	}

	.register-wrapper {
		flex-direction: column;
		max-height: none;
		height: auto;
	}

	.register-left,
	.register-right {
		flex: none;
	}

	.register-left {
		padding: 20px;
	}

	.register-right {
		padding: 30px 20px;
	}

	.form-row {
		flex-direction: column;
		gap: 0;
	}

	.brand-logo h1 {
		font-size: 1.5rem;
	}

	.promo-content h2 {
		font-size: 1.8rem;
	}

	.promo-content p {
		font-size: 0.9rem;
	}

	.features-list {
		margin: 15px 0;
	}

	.feature-item {
		padding: 10px;
		margin-bottom: 10px;
	}

	.feature-icon {
		width: 30px;
		height: 30px;
	}

	.testimonial {
		padding: 12px;
		margin-top: 15px;
	}
}

@media (max-width: 480px) {
	.register-left {
		padding: 20px 15px;
	}

	.register-right {
		padding: 15px;
	}

	.brand-logo h1 {
		font-size: 1.4rem;
	}

	.input-group input,
	.input-group select {
		padding: 8px 12px;
		padding-left: 35px;
		font-size: 0.85rem;
	}

	.input-group .input-icon {
		left: 12px;
		font-size: 0.8rem;
	}

	.password-toggle {
		right: 12px;
		font-size: 0.8rem;
	}

	.register-button {
		padding: 10px;
		font-size: 0.9rem;
	}

	.promo-content h2 {
		font-size: 1.5rem;
	}

	.feature-item {
		padding: 8px;
	}

	.feature-icon {
		width: 28px;
		height: 28px;
		font-size: 0.8rem;
	}

	.terms-checkbox {
		font-size: 0.75rem;
	}
}

/* Custom Checkbox Styles */
.custom-checkbox {
	display: flex;
	align-items: flex-start;
	margin: 15px 0;
	cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
	display: none;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	font-size: 0.75rem;
	color: #555;
	line-height: 1.4;
	cursor: pointer;
	margin: 0;
}

.checkmark {
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	background: white;
	position: relative;
	margin-right: 10px;
	margin-top: 2px;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label .checkmark {
	background: #667eea;
	border-color: #667eea;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label .checkmark::after {
	content: '✓';
	position: absolute;
	top: -2px;
	left: 3px;
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.checkbox-label a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
}

.checkbox-label a:hover {
	color: #764ba2;
	text-decoration: underline;
}