:root {
	--primary-color: #5E60CE;
	--primary-light: #807EE0;
	--primary-dark: #4F40B5;
	--primary-gradient: linear-gradient(135deg, #5E60CE 0%, #7400B8 100%);
	--secondary-color: #48BFE3;
	--secondary-gradient: linear-gradient(135deg, #48BFE3 0%, #5390D9 100%);
	--success-color: #36D399;
	--warning-color: #FFAA5A;
	--danger-color: #F87272;
	--text-color: #2A2B3A;
	--text-light: #6A6B78;
	--bg-color: #F5F7FA;
	--card-color: #FFFFFF;
	--inactive-bg: #F0F2F5;
	--border-color: #E5E7EB;
	--border-radius: 12px;
	--border-radius-lg: 16px;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	--header-height: 60px;
	--safe-area-top: env(safe-area-inset-top, 0px);
	--safe-area-bottom: env(safe-area-inset-bottom, 0px);
	--safe-area-left: env(safe-area-inset-left, 0px);
	--safe-area-right: env(safe-area-inset-right, 0px);
	--content-padding: 16px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html {
	height: 100%;
	width: 100%;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	min-height: 100vh;
	width: 100%;
	padding-top: calc(var(--header-height) + var(--safe-area-top));
	padding-bottom: calc(var(--safe-area-bottom));
	display: flex;
	flex-direction: column;
	position: relative;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
}

.container {
	max-width: 450px;
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--content-padding);
	padding-left: max(var(--content-padding), var(--safe-area-left));
	padding-right: max(var(--content-padding), var(--safe-area-right));
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Top Navigation Bar */
.top-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: calc(var(--header-height) + var(--safe-area-top));
	padding-top: var(--safe-area-top);
	background-color: var(--card-color);
	box-shadow: var(--shadow);
	z-index: 100;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-left: max(16px, var(--safe-area-left));
	padding-right: max(16px, var(--safe-area-right));
}

.top-nav-logo {
	height: 40px;
	display: flex;
	align-items: center;
}

.top-nav-logo img {
	height: 100%;
	width: auto;
}

.card {
	background-color: var(--card-color);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow);
	padding: 24px;
	width: 100%;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.tabs {
	display: flex;
	background-color: var(--inactive-bg);
	border-radius: calc(var(--border-radius) * 1.5);
	padding: 4px;
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
}

.tab {
	flex: 1;
	text-align: center;
	padding: 12px;
	font-weight: 600;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 2;
	font-family: 'Space Grotesk', sans-serif;
}

.tab.active {
	color: white;
}

.tab-indicator {
	position: absolute;
	height: calc(100% - 8px);
	width: calc(50% - 4px);
	background: var(--primary-gradient);
	border-radius: var(--border-radius);
	top: 4px;
	left: 4px;
	transition: transform 0.3s ease;
	z-index: 1;
}

.tab:nth-child(2).active ~ .tab-indicator {
	transform: translateX(100%);
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
	animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-title {
	font-size: 1.5rem;
	margin-bottom: 24px;
	text-align: center;
}

.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text-color);
	font-size: 0.9rem;
}

.input-wrapper {
	position: relative;
}

.input-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
	color: var(--text-light);
	z-index: 2;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
	width: 100%;
	padding: 14px 16px 14px 45px;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: 1rem;
	background-color: var(--card-color);
	min-height: 50px;
	transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(94, 96, 206, 0.1);
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	cursor: pointer;
	padding: 8px 0;
	min-height: 44px;
}

.checkbox-wrapper input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.custom-checkbox {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 2px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--card-color);
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.checkbox-wrapper input:checked ~ .custom-checkbox {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.custom-checkbox::after {
	content: "";
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: cover;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.checkbox-wrapper input:checked ~ .custom-checkbox::after {
	opacity: 1;
}

.checkbox-label {
	font-size: 0.95rem;
	color: var(--text-color);
	flex: 1;
}

.btn {
	cursor: pointer;
	padding: 14px 20px;
	border: none;
	border-radius: var(--border-radius);
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	box-shadow: var(--shadow);
	width: 100%;
	transition: all 0.3s ease;
}

.btn-primary {
	background: var(--primary-gradient);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 15px rgba(94, 96, 206, 0.2);
}

.btn-secondary {
	background: transparent;
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
}

.btn-secondary:hover {
	background: rgba(94, 96, 206, 0.05);
}

.divider {
	position: relative;
	text-align: center;
	margin: 24px 0;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.divider::before,
.divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: var(--border-color);
}

.divider-text {
	padding: 0 16px;
	color: var(--text-light);
	font-size: 0.9rem;
}

.bottom-text {
	text-align: center;
	margin-top: 16px;
	font-size: 0.9rem;
	color: var(--text-light);
}

.bottom-text a {
	color: var(--primary-color);
	font-weight: 600;
	text-decoration: none;
}

.forgot-password {
	text-align: right;
	margin-top: -10px;
	margin-bottom: 20px;
}

.forgot-password a {
	color: var(--primary-color);
	font-size: 0.9rem;
	text-decoration: none;
	font-weight: 500;
}

.forgot-password a:hover {
	text-decoration: underline;
}

.additional-fields {
	display: none;
	animation: fadeIn 0.5s ease forwards;
}

.progress-bar-container {
	width: 100%;
	height: 4px;
	background-color: var(--inactive-bg);
	border-radius: 2px;
	margin-bottom: 16px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background: var(--primary-gradient);
	width: 0;
	transition: width 0.5s ease;
}

.password-strength {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 0.85rem;
}

.password-strength-text {
	color: var(--text-light);
}

.password-requirements {
	background-color: var(--inactive-bg);
	border-radius: var(--border-radius);
	padding: 12px 16px;
	margin-top: 12px;
	font-size: 0.85rem;
	color: var(--text-light);
}

.requirement {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.requirement-icon {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: white;
}

.requirement.valid .requirement-icon {
	background-color: var(--success-color);
}

.requirement.invalid .requirement-icon {
	background-color: var(--text-light);
}

.alert {
	padding: 12px 16px;
	border-radius: var(--border-radius);
	margin-bottom: 20px;
	font-size: 0.9rem;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	animation: fadeIn 0.5s ease forwards;
	display: none;
}

.alert-danger {
	background-color: rgba(248, 114, 114, 0.1);
	color: var(--danger-color);
	border-left: 4px solid var(--danger-color);
}

.alert-success {
	background-color: rgba(54, 211, 153, 0.1);
	color: var(--success-color);
	border-left: 4px solid var(--success-color);
}

.alert-info {
	background-color: rgba(94, 96, 206, 0.1);
	color: var(--primary-color);
	border-left: 4px solid var(--primary-color);
}

.alert-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.alert-text {
	flex: 1;
}

.loader {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 1s linear infinite;
	margin-right: 8px;
	display: none;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.btn.loading .loader {
	display: inline-block;
}

/* Forgot Password Styles */
.forgot-password-content {
	display: none;
	animation: fadeIn 0.5s ease forwards;
}

.back-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--primary-color);
	font-weight: 600;
	cursor: pointer;
	padding: 8px 0;
	margin-bottom: 16px;
}

.back-button:hover {
	text-decoration: underline;
}

/* Responsive styling */
@media (max-width: 768px) {
	.container {
		padding: 0 16px;
		justify-content: flex-start;
		padding-top: 40px;
	}
	
	.card {
		padding: 20px;
		margin-top: 20px;
	}
	
	.form-title {
		font-size: 1.2rem;
		margin-bottom: 20px;
	}
	
	.btn {
		min-height: 48px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 12px;
		padding-top: 20px;
	}
	
	.card {
		padding: 16px;
		border-radius: 12px;
	}
	
	.form-title {
		font-size: 1.1rem;
		margin-bottom: 16px;
	}
	
	.tab {
		padding: 10px;
		font-size: 0.9rem;
	}
	
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="tel"] {
		font-size: 0.95rem;
		padding: 12px 12px 12px 40px;
		min-height: 46px;
	}
	
	.input-icon {
		left: 12px;
	}
	
	.btn {
		padding: 12px 16px;
		font-size: 0.95rem;
		min-height: 46px;
	}
}

/* Toast notifications */
.toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--text-color);
	color: white;
	padding: 12px 20px;
	border-radius: 30px;
	box-shadow: var(--shadow);
	z-index: 1000;
	font-weight: 500;
	opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
	text-align: center;
	min-width: 200px;
	max-width: 90%;
}

.toast.active {
	opacity: 1;
	transform: translateX(-50%) translateY(-10px);
}

.top-nav-logo img {
    height: 151px;
    width: auto;
}

@media (min-width: 0px) and (max-width: 991px) {
	.top-nav {
		padding-left: 0px;
	}
}