:root {
	--bg: #ffffff;
	--muted: #6b7280;
	--text: #0f172a;
	--accent: #3b82f6;
	--glass: rgba(15, 23, 42, 0.04);
	--radius-lg: 14px;
	--radius-md: 10px;
	--shadow-sm: 0 6px 16px rgba(2, 6, 23, 0.08);
}

* {
	box-sizing: border-box
}

html,
body {
	height: 100%;
	margin: 0;
	font-family: 'Poppins', system-ui, Arial, -apple-system
}

body {
	background: linear-gradient(180deg, #fbfdff 0%, #ffffff 50%);
	color: var(--text);
}

.auth-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px
}

.auth-container {
	display: grid;
	grid-template-columns: 1fr 480px;
	gap: 40px;
	max-width: 1200px;
	width: 100%;
	align-items: stretch
}

.auth-left {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg);
	box-shadow: var(--shadow-sm)
}

.hero-media {
	position: relative;
	height: 100%;
	min-height: 420px
}

.hero-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(6%) contrast(96%)
}

.hero-overlay {
	position: absolute;
	left: 28px;
	bottom: 28px;
	color: var(--text);
	max-width: 70%;
	background: rgba(255, 255, 255, 0.88);
	padding: 18px 18px 16px 18px;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);
	backdrop-filter: blur(6px);
}

.hero-overlay h1 {
	font-size: 28px;
	margin: 0 0 8px;
	line-height: 1.05
}

.hero-overlay .lead {
	color: var(--muted);
	margin: 0 0 10px;
	font-size: 14px
}

.benefits {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 13px
}

.benefits li {
	margin-bottom: 6px
}

.auth-right {
	display: flex;
	align-items: center;
	justify-content: center
}

.login-card {
	background: var(--bg);
	border-radius: var(--radius-lg);
	padding: 28px;
	width: 100%;
	max-width: 460px;
	box-shadow: 0 18px 50px rgba(2, 6, 23, 0.06);
	border: 1px solid rgba(15, 23, 42, 0.04)
}

.form-header h2 {
	margin: 0;
	font-size: 20px
}

.muted {
	color: var(--muted);
	font-size: 13px
}

.tabs {
	display: flex;
	gap: 8px;
	margin-top: 18px;
	margin-bottom: 18px
}

.tab-button {
	flex: 1;
	background: transparent;
	border: 1px solid rgba(15, 23, 42, 0.04);
	padding: 10px 12px;
	border-radius: 10px;
	font-weight: 600;
	color: #374151;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .18s ease
}

.tab-button svg.icon {
	opacity: 1;
	color: var(--muted)
}

.tab-button.active {
	background: linear-gradient(90deg, rgba(59, 130, 246, .10), rgba(96, 165, 250, .04));
	border-color: rgba(59, 130, 246, .18);
	color: var(--accent);
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.06)
}

.tab-panels {
	margin-top: 6px
}

.tab-panel {
	display: none
}

.tab-panel.active {
	display: block
}

.form-group {
	margin-bottom: 14px
}

.form-group label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 8px
}

.input-with-icon {
	display: flex;
	align-items: center;
	border: 1px solid rgba(15, 23, 42, 0.06);
	background: #fbfcfe;
	padding: 10px;
	border-radius: 10px
}

.input-with-icon .input-icon {
	margin-right: 10px;
	color: #4b5563
}

.input-with-icon input {
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 15px;
	flex: 1;
	padding: 6px;
	color: var(--text)
}

.input-with-icon:focus-within {
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
	border-color: rgba(59, 130, 246, 0.22)
}

.submit-button {
	display: inline-block;
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	background: linear-gradient(90deg, var(--accent), #2563eb);
	color: white;
	border: 0;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
	transition: transform .14s ease
}

.submit-button:hover {
	transform: translateY(-2px)
}

.submit-button:active {
	transform: translateY(1px)
}

.form-footer {
	margin-top: 14px;
	text-align: center
}

.auth-link {
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
	transition: color .18s ease
}

.auth-link:hover {
	color: #2563eb;
	text-decoration: underline
}

.error-message {
	animation: fadeIn .25s ease;
}

.overlay-brand {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #eff6ff;
	border: 0.5px solid #bfdbfe;
	border-radius: 20px;
	padding: 5px 12px;
	margin-bottom: 14px;
}

.overlay-brand svg {
	color: #3b82f6;
	flex-shrink: 0;
}

.overlay-brand span {
	font-size: 11px;
	font-weight: 600;
	color: #2563eb;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.hero-overlay h1 em {
	font-style: normal;
	color: #3b82f6;
}

.overlay-divider {
	height: 0.5px;
	background: rgba(15, 23, 42, 0.08);
	margin: 14px 0;
}

.benefits li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
}

.benefits li::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3b82f6;
	flex-shrink: 0;
}

.overlay-footer {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 0.5px solid rgba(15, 23, 42, 0.06);
	display: flex;
	align-items: center;
	gap: 6px;
}

.status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.overlay-footer span {
	font-size: 11px;
	color: #6b7280;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.error-message {
	background: #fff1f2;
	color: #e11d48;
	border: 1px solid #fecdd3;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
	margin: 10px 0;
	text-align: center;
}

.password-field {
	display: flex;
	align-items: center;
}

.toggle-password {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
}

.toggle-password:hover {
	color: #2563eb;
}

.eye-icon {
	width: 18px;
	height: 18px;
}

.password-field {
	position: relative;
}

.password-field input {
	padding-right: 50px;
}

.toggle-password {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	cursor: pointer;
	color: #64748b;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hide mobile header on desktop */
.mobile-logo-bar {
	display: none;
}

/* Responsive */
@media (max-width: 980px) {
	.auth-container {
		grid-template-columns: 1fr;
	}

	.hero-overlay {
		position: static;
		padding: 20px
	}

	.hero-photo {
		min-height: 320px
	}
}

@media (max-width:480px) {
	.auth-wrapper {
		padding: 16px
	}

	.login-card {
		padding: 20px
	}

	.hero-overlay h1 {
		font-size: 20px
	}
}



@media (max-width: 767px) {
	.auth-left {
		display: none;
	}

	.auth-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}
		.auth-wrapper{
			height: unset;
			
		}

	.mobile-logo-bar {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 20px 16px;
		width: 100%;
	}

	.mobile-logo-wrap {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.mobile-logo-icon {
		width: 40px;
		height: 40px;
		background: #0369a1;
		border-radius: 8px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
	}

	.mobile-logo-text {
		font-size: 18px;
		font-weight: 600;
		color: #0f172a;
	}
}