/* -----------------------------------------------------------------------------
 * Kasir Pro - Modern Enterprise Authentication Styles
 * Designed for Premium SaaS, Clean UI/UX, High Performance & Responsive Layouts
 * -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
	--auth-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--auth-primary: #4f46e5;
	--auth-primary-hover: #4338ca;
	--auth-primary-soft: rgba(79, 70, 229, 0.1);
	--auth-slate-900: #0f172a;
	--auth-slate-800: #1e293b;
	--auth-slate-700: #334155;
	--auth-slate-600: #475569;
	--auth-slate-500: #64748b;
	--auth-slate-400: #94a3b8;
	--auth-slate-200: #e2e8f0;
	--auth-slate-100: #f1f5f9;
	--auth-slate-50: #f8fafc;
	--auth-emerald: #10b981;
	--auth-cyan: #06b6d4;
	--auth-amber: #f59e0b;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--auth-font);
	font-size: 15px;
	color: var(--auth-slate-700);
	background-color: var(--auth-slate-50);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------------------------------------------
 * Split-Screen Layout Container
 * -------------------------------------------------------------------------- */
.auth-page {
	display: flex;
	min-height: 100vh;
	width: 100%;
	overflow-x: hidden;
	background-color: #ffffff;
}

/* -----------------------------------------------------------------------------
 * Left Hero Panel (Showcase, Informative & Branding)
 * -------------------------------------------------------------------------- */
.auth-hero-section {
	flex: 1.15;
	min-height: 100vh;
	background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.18) 0%, transparent 40%),
				radial-gradient(circle at 90% 85%, rgba(14, 165, 233, 0.15) 0%, transparent 45%),
				linear-gradient(155deg, #090e17 0%, #0f172a 45%, #1e293b 100%);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 3.5rem 4rem;
	color: #ffffff;
	z-index: 1;
}

/* Subtle background grid texture */
.auth-hero-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
	opacity: 0.7;
	z-index: -1;
}

/* Ambient light glows */
.auth-hero-section::after {
	content: '';
	position: absolute;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
	top: 25%;
	left: -120px;
	pointer-events: none;
	z-index: -1;
}

.auth-hero-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2.5rem;
}

.brand-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 9999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #e2e8f0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
	animation: pulseGreen 2.2s infinite ease-in-out;
}

@keyframes pulseGreen {
	0%, 100% {
		box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
	}
	50% {
		box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.05);
	}
}

.auth-hero-body {
	max-width: 560px;
	margin: auto 0;
}

.auth-hero-title {
	font-size: 2.35rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.025em;
	margin-bottom: 1.15rem;
	color: #ffffff;
}

.text-gradient {
	background: linear-gradient(135deg, #a5b4fc 0%, #38bdf8 50%, #4ade80 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.auth-hero-desc {
	font-size: 1.02rem;
	line-height: 1.65;
	color: #cbd5e1;
	margin-bottom: 2.25rem;
	font-weight: 400;
}

/* Informative Feature Cards */
.auth-feature-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.auth-feature-card {
	display: flex;
	align-items: flex-start;
	gap: 1.15rem;
	padding: 1.1rem 1.25rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.auth-feature-card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.18);
}

.feature-icon-box {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	flex-shrink: 0;
}

.bg-indigo-soft {
	background: rgba(99, 102, 241, 0.18);
	color: #a5b4fc;
}

.bg-emerald-soft {
	background: rgba(16, 185, 129, 0.18);
	color: #6ee7b7;
}

.bg-cyan-soft {
	background: rgba(6, 182, 212, 0.18);
	color: #67e8f9;
}

.feature-text {
	flex: 1;
}

.feature-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #f8fafc;
	margin-bottom: 0.25rem;
}

.feature-desc {
	font-size: 0.84rem;
	color: #94a3b8;
	line-height: 1.5;
	margin: 0;
}

.auth-hero-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.auth-trust-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: #94a3b8;
}

/* -----------------------------------------------------------------------------
 * Right Authentication Content Panel
 * -------------------------------------------------------------------------- */
.auth-content-section {
	flex: 1;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 2.5rem;
	background-color: #ffffff;
	position: relative;
}

.auth-card-wrapper {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}

/* Mobile brand logo header */
.auth-logo-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.25rem;
}

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

.auth-form-header {
	margin-bottom: 2rem;
}

.auth-form-title {
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--auth-slate-900);
	letter-spacing: -0.02em;
	margin-bottom: 0.4rem;
}

.auth-form-subtitle {
	font-size: 0.92rem;
	color: var(--auth-slate-500);
	margin: 0;
	line-height: 1.5;
}

/* Form Elements */
.auth-label {
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--auth-slate-700);
	margin-bottom: 0.45rem;
}

.auth-input-group {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.auth-input-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--auth-slate-400);
	font-size: 0.95rem;
	pointer-events: none;
	z-index: 4;
	transition: color 0.2s ease;
}

.auth-input {
	width: 100%;
	height: 48px;
	padding: 0.65rem 42px 0.65rem 42px;
	border: 1.5px solid var(--auth-slate-200);
	border-radius: 10px;
	font-size: 0.92rem;
	color: var(--auth-slate-800);
	background-color: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input::placeholder {
	color: #94a3b8;
	font-size: 0.88rem;
}

.auth-input:focus {
	border-color: var(--auth-primary);
	background-color: #ffffff;
	box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.14);
	outline: none;
}

.auth-input-group:focus-within .auth-input-icon {
	color: var(--auth-primary);
}

.auth-btn-toggle-pwd {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: var(--auth-slate-400);
	cursor: pointer;
	padding: 8px 10px;
	font-size: 1rem;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-btn-toggle-pwd:hover {
	color: var(--auth-slate-800);
	background-color: var(--auth-slate-100);
}

/* Links */
.auth-link-forgot {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--auth-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.auth-link-forgot:hover {
	color: var(--auth-primary-hover);
	text-decoration: underline;
}

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

.auth-link-primary:hover {
	color: var(--auth-primary-hover);
	text-decoration: underline;
}

/* Checkbox */
.auth-checkbox .form-check-input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	border: 1.5px solid var(--auth-slate-400);
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.auth-checkbox .form-check-input:checked {
	background-color: var(--auth-primary);
	border-color: var(--auth-primary);
}

.auth-checkbox .form-check-input:focus {
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-checkbox .form-check-label {
	font-size: 0.86rem;
	color: var(--auth-slate-600);
	cursor: pointer;
	padding-left: 0.35rem;
	user-select: none;
}

/* Submit CTA Button */
.btn-auth-submit {
	height: 48px;
	width: 100%;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	color: #ffffff;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.btn-auth-submit:hover:not(:disabled) {
	background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.42);
	transform: translateY(-1px);
	color: #ffffff;
}

.btn-auth-submit:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-auth-submit:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.auth-btn-arrow {
	transition: transform 0.2s ease;
}

.btn-auth-submit:hover:not(:disabled) .auth-btn-arrow {
	transform: translateX(3px);
}

/* Alert Container */
.alert {
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	font-size: 0.88rem;
}

.alert-danger {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.alert-success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

/* Card Footer Copyright */
.auth-card-footer {
	margin-top: 2.25rem;
	font-size: 0.82rem;
	color: var(--auth-slate-400);
	text-align: center;
}

.auth-card-footer a {
	color: var(--auth-slate-600);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.auth-card-footer a:hover {
	color: var(--auth-primary);
	text-decoration: underline;
}

/* -----------------------------------------------------------------------------
 * Compatibility Styles for Legacy Views (Register, Recovery, etc.)
 * -------------------------------------------------------------------------- */
.card-header,
.card-header.transparent-header {
	background: transparent !important;
	border: none !important;
	padding: 0 0 1rem 0 !important;
	text-align: center;
}

.card-header .logo img {
	max-height: 52px;
	width: auto;
	object-fit: contain;
}

.card-body {
	background: transparent !important;
	padding: 0 !important;
}

.card-footer {
	background: transparent !important;
	border: none !important;
	padding: 1.5rem 0 0 0 !important;
	text-align: center;
	font-size: 0.88rem;
}

.card-footer a {
	color: var(--auth-primary);
	text-decoration: none;
	font-weight: 600;
}

.card-footer a:hover {
	text-decoration: underline;
}

.register-input,
.login-input {
	height: 48px;
	border-radius: 10px !important;
	border: 1.5px solid var(--auth-slate-200) !important;
	padding: 0.65rem 1rem !important;
	font-size: 0.92rem;
	background-color: #ffffff !important;
}

.register-input:focus,
.login-input:focus {
	border-color: var(--auth-primary) !important;
	box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.14) !important;
	outline: none !important;
}

/* -----------------------------------------------------------------------------
 * Responsive Adaptations
 * -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
	.auth-hero-section {
		padding: 3rem 2.5rem;
	}
	.auth-hero-title {
		font-size: 2rem;
	}
}

@media screen and (max-width: 991.98px) {
	.auth-page {
		flex-direction: column;
	}

	.auth-hero-section {
		flex: none;
		min-height: auto;
		padding: 2.5rem 2rem;
	}

	.auth-hero-title {
		font-size: 1.75rem;
	}

	.auth-hero-desc {
		font-size: 0.92rem;
		margin-bottom: 1.5rem;
	}

	.auth-feature-list {
		display: none; /* Hide heavy feature cards on tablet/mobile to keep focus on form */
	}

	.auth-hero-footer {
		display: none;
	}

	.auth-content-section {
		flex: none;
		min-height: auto;
		padding: 2.5rem 1.5rem 3rem;
		background-color: var(--auth-slate-50);
	}

	.auth-card-wrapper {
		background: #ffffff;
		padding: 2.25rem 2rem;
		border-radius: 18px;
		border: 1px solid var(--auth-slate-200);
		box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
	}
}

@media screen and (max-width: 575.98px) {
	.auth-hero-section {
		padding: 2rem 1.25rem;
		text-align: center;
	}

	.auth-hero-brand {
		justify-content: center;
		margin-bottom: 1.5rem;
	}

	.auth-hero-title {
		font-size: 1.45rem;
		line-height: 1.3;
	}

	.auth-hero-desc {
		display: none;
	}

	.auth-content-section {
		padding: 1rem 1rem 2.5rem;
	}

	.auth-card-wrapper {
		padding: 1.75rem 1.25rem;
		border-radius: 14px;
	}

	.auth-form-title {
		font-size: 1.4rem;
	}
}