:root {
	--primary-red: #dc2626;
	--primary-red-hover: #b91c1c;
	--dark-bg: #0f172a;
	--card-bg: #ffffff;
	--text-dark: #1e293b;
	--text-muted: #64748b;
}

body {
	font-family: 'Plus Jakarta Sans', sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f8fafc;
	min-height: 100vh;
	display: flex;
}

.auth-container {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-wrap: wrap;
}

/* Left Branding Panel */
.auth-hero {
	flex: 1 1 50%;
	background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 35%, #881337 70%, #991b1b 100%);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 3.5rem;
	color: #ffffff;
	overflow: hidden;
}

/* Ambient Glow & Pattern */
.auth-hero::before {
	content: '';
	position: absolute;
	top: -15%;
	left: -15%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(220,38,38,0.25) 0%, rgba(0,0,0,0) 70%);
	border-radius: 50%;
	pointer-events: none;
}

.auth-hero::after {
	content: '';
	position: absolute;
	bottom: -10%;
	right: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(0,0,0,0) 70%);
	border-radius: 50%;
	pointer-events: none;
}

.hero-top-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 8px 18px;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	width: fit-content;
	z-index: 2;
}

.hero-center-content {
	margin: auto 0;
	max-width: 540px;
	z-index: 2;
}

.logo-box {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 24px;
	padding: 24px 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease;
}

.logo-box:hover {
	transform: translateY(-4px);
}

.logo-box img {
	max-height: 120px;
	width: auto;
	object-fit: contain;
}

.hero-title {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 0.5rem;
	background: linear-gradient(180deg, #ffffff 0%, #fecdd3 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-subtitle {
	font-size: 1.15rem;
	font-weight: 600;
	color: #f87171;
	margin-bottom: 1.25rem;
	letter-spacing: 0.3px;
}

.hero-description {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #cbd5e1;
	margin-bottom: 2rem;
}

.feature-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 8px 14px;
	border-radius: 12px;
	font-size: 0.825rem;
	font-weight: 500;
	color: #e2e8f0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-footer {
	font-size: 0.8rem;
	color: #94a3b8;
	z-index: 2;
}

/* Right Form Panel */
.auth-form-panel {
	flex: 1 1 50%;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 2.5rem;
	position: relative;
}

.form-card {
	width: 100%;
	max-width: 460px;
}

.form-header {
	margin-bottom: 1.75rem;
}

.form-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
}

.form-subtitle {
	font-size: 0.925rem;
	color: var(--text-muted);
}

.input-group-custom {
	position: relative;
	margin-bottom: 1.25rem;
}

.input-group-custom label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.4rem;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 16px;
	color: #94a3b8;
	font-size: 1.1rem;
	pointer-events: none;
	transition: color 0.2s ease;
}

.form-control-custom {
	width: 100%;
	padding: 12px 16px 12px 46px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-dark);
	background-color: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.form-control-custom[readonly] {
	background-color: #e2e8f0;
	color: #475569;
}

.form-control-custom:focus:not([readonly]) {
	outline: none;
	background-color: #ffffff;
	border-color: var(--primary-red);
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.form-control-custom:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
	color: var(--primary-red);
}

.toggle-password {
	position: absolute;
	right: 16px;
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
	font-size: 1.1rem;
}

.toggle-password:hover {
	color: var(--text-dark);
}

.password-hint {
	font-size: 0.775rem;
	color: #64748b;
	margin-top: 4px;
}

.captcha-container {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.captcha-img-box {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 4px 8px;
	display: inline-block;
	overflow: hidden;
}

.captcha-img-box img {
	height: 38px;
	width: auto;
	display: block;
}

.btn-submit-custom {
	width: 100%;
	padding: 14px;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	border: none;
	border-radius: 12px;
	box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.4);
	cursor: pointer;
	transition: all 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 1.5rem;
}

.btn-submit-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 25px -4px rgba(220, 38, 38, 0.5);
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-submit-custom:active {
	transform: translateY(0);
}

.register-link-box {
	text-align: center;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #f1f5f9;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.register-link-box a {
	color: var(--primary-red);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

.register-link-box a:hover {
	color: var(--primary-red-hover);
	text-decoration: underline;
}

.alert-custom {
	border-radius: 12px;
	font-size: 0.875rem;
	font-weight: 500;
	border: none;
	margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
	.auth-container {
		flex-direction: column;
	}
	.auth-hero {
		padding: 2.5rem 1.5rem;
		flex: none;
	}
	.hero-title {
		font-size: 2rem;
	}
	.logo-box img {
		max-height: 90px;
	}
	.auth-form-panel {
		padding: 2.5rem 1.5rem;
		flex: none;
		width: 100%;
	}
}
