﻿/* HeptaBooks Finance - Premium Authentication Pages Stylesheet */
/* Fortune 500 Grade Design for Finance Applications */

:root {
	--primary-dark: #0a1628;
	--primary-navy: #0f2744;
	--primary-blue: #1e3a5f;
	--accent-gold: #c9a227;
	--accent-gold-light: #e8d48b;
	--text-primary: #1a1a2e;
	--text-secondary: #4a5568;
	--text-light: #718096;
	--white: #ffffff;
	--gray-50: #f7fafc;
	--gray-100: #edf2f7;
	--gray-200: #e2e8f0;
	--success: #38a169;
	--error: #e53e3e;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md:
		0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg:
		0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl:
		0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.auth-page {
	font-family:
		"Segoe UI",
		-apple-system,
		BlinkMacSystemFont,
		"Helvetica Neue",
		Arial,
		sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
	background: var(--gray-50);
}

/* Main Container - Split Screen Layout */
.auth-container {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* Left Panel - Hero Section */
.auth-hero {
	flex: 1;
	background: linear-gradient(
		135deg,
		var(--primary-dark) 0%,
		var(--primary-navy) 50%,
		var(--primary-blue) 100%
	);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 60px;
	overflow: hidden;
}

/* Animated Background Pattern */
.auth-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(
			circle at 20% 80%,
			rgba(201, 162, 39, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(201, 162, 39, 0.08) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 40% 40%,
			rgba(255, 255, 255, 0.03) 0%,
			transparent 30%
		);
	animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* Geometric Pattern Overlay */
.auth-hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 500px;
}

.hero-icon {
	width: 120px;
	height: 120px;
	background: linear-gradient(
		135deg,
		var(--accent-gold) 0%,
		var(--accent-gold-light) 100%
	);
	border-radius: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 40px;
	box-shadow: 0 20px 40px rgba(201, 162, 39, 0.3);
	transform: rotate(-5deg);
	transition: transform 0.3s ease;
}

.hero-icon:hover {
	transform: rotate(0deg) scale(1.05);
}

.hero-icon svg {
	width: 60px;
	height: 60px;
	fill: var(--primary-dark);
}

.hero-title {
	color: var(--white);
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.hero-subtitle {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.125rem;
	line-height: 1.7;
	margin-bottom: 40px;
}

.hero-features {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: left;
}

.hero-feature {
	display: flex;
	align-items: center;
	gap: 16px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
}

.hero-feature-icon {
	width: 40px;
	height: 40px;
	background: rgba(201, 162, 39, 0.2);
	border: 1px solid rgba(201, 162, 39, 0.3);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hero-feature-icon i {
	color: var(--accent-gold);
	font-size: 1rem;
}

/* Right Panel - Form Section */
.auth-form-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 60px;
	background: var(--white);
	position: relative;
}

.auth-form-container {
	width: 100%;
	max-width: 420px;
}

/* Branding */
.auth-brand {
	text-align: center;
	margin-bottom: 40px;
}

.auth-brand img {
	height: 56px;
	width: auto;
	margin-bottom: 16px;
}

.auth-brand-text {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary-navy);
	letter-spacing: -0.5px;
}

.auth-brand-tagline {
	font-size: 0.875rem;
	color: var(--text-light);
	margin-top: 4px;
}

/* Form Heading */
.auth-heading {
	text-align: center;
	margin-bottom: 32px;
}

.auth-heading h1 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.auth-heading p {
	font-size: 0.9375rem;
	color: var(--text-secondary);
}

/* Form Styles */
.auth-form {
	width: 100%;
}

.form-group {
	margin-bottom: 24px;
}

.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.form-input-wrapper {
	position: relative;
}

.form-input-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-light);
	font-size: 1rem;
	pointer-events: none;
	transition: color 0.2s ease;
}

.form-control {
	width: 100%;
	padding: 14px 16px 14px 48px;
	font-size: 0.9375rem;
	color: var(--text-primary);
	background: var(--gray-50);
	border: 2px solid var(--gray-200);
	border-radius: 12px;
	transition: all 0.2s ease;
	outline: none;
}

.form-control:hover {
	border-color: var(--gray-200);
	background: var(--white);
}

.form-control:focus {
	border-color: var(--primary-blue);
	background: var(--white);
	box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-control:focus + .form-input-icon,
.form-control:not(:placeholder-shown) + .form-input-icon {
	color: var(--primary-blue);
}

.form-control::placeholder {
	color: var(--text-light);
}

/* Password Toggle */
.password-toggle {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	padding: 4px;
	transition: color 0.2s ease;
}

.password-toggle:hover {
	color: var(--primary-blue);
}

/* Remember Me & Forgot Password Row */
.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.remember-me input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--primary-blue);
	cursor: pointer;
}

.remember-me span {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.forgot-link {
	font-size: 0.875rem;
	color: var(--primary-blue);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.forgot-link:hover {
	color: var(--accent-gold);
	text-decoration: underline;
}

/* Submit Button */
.btn-auth-primary {
	width: 100%;
	padding: 16px 24px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--white);
	background: linear-gradient(
		135deg,
		var(--primary-navy) 0%,
		var(--primary-blue) 100%
	);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.btn-auth-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	background: linear-gradient(
		135deg,
		var(--primary-dark) 0%,
		var(--primary-navy) 100%
	);
}

.btn-auth-primary:active {
	transform: translateY(0);
}

.btn-auth-primary i {
	font-size: 1rem;
}

/* Secondary Button */
.btn-auth-secondary {
	width: 100%;
	padding: 14px 24px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--text-primary);
	background: var(--white);
	border: 2px solid var(--gray-200);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
}

.btn-auth-secondary:hover {
	border-color: var(--primary-blue);
	color: var(--primary-blue);
	background: var(--gray-50);
}

/* Divider */
.auth-divider {
	display: flex;
	align-items: center;
	margin: 24px 0;
	color: var(--text-light);
	font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--gray-200);
}

.auth-divider span {
	padding: 0 16px;
}

/* Security Notice */
.security-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: linear-gradient(
		135deg,
		rgba(201, 162, 39, 0.08) 0%,
		rgba(201, 162, 39, 0.04) 100%
	);
	border: 1px solid rgba(201, 162, 39, 0.2);
	border-radius: 12px;
	margin-top: 32px;
}

.security-notice-icon {
	width: 36px;
	height: 36px;
	background: linear-gradient(
		135deg,
		var(--accent-gold) 0%,
		var(--accent-gold-light) 100%
	);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.security-notice-icon i {
	color: var(--primary-dark);
	font-size: 1rem;
}

.security-notice-text {
	font-size: 0.8125rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

.security-notice-text strong {
	color: var(--text-primary);
	display: block;
	margin-bottom: 2px;
}

/* Footer */
.auth-footer {
	text-align: center;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--gray-200);
}

.auth-footer p {
	font-size: 0.8125rem;
	color: var(--text-light);
}

.auth-footer a {
	color: var(--primary-blue);
	text-decoration: none;
}

.auth-footer a:hover {
	text-decoration: underline;
}

/* Back Link */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--text-secondary);
	text-decoration: none;
	margin-bottom: 24px;
	transition: color 0.2s ease;
}

.back-link:hover {
	color: var(--primary-blue);
}

.back-link i {
	font-size: 0.875rem;
}

/* Success/Info Messages */
.auth-message {
	padding: 16px;
	border-radius: 12px;
	margin-bottom: 24px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.auth-message-info {
	background: rgba(30, 58, 95, 0.08);
	border: 1px solid rgba(30, 58, 95, 0.2);
}

.auth-message-success {
	background: rgba(56, 161, 105, 0.08);
	border: 1px solid rgba(56, 161, 105, 0.2);
}

.auth-message i {
	font-size: 1.25rem;
	flex-shrink: 0;
}

.auth-message-info i {
	color: var(--primary-blue);
}

.auth-message-success i {
	color: var(--success);
}

.auth-message p {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* Loading State */
.btn-loading {
	pointer-events: none;
	opacity: 0.8;
}

.btn-loading .btn-text {
	visibility: hidden;
}

.btn-loading::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid transparent;
	border-top-color: var(--white);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive Design */
@media (max-width: 1024px) {
	.auth-hero {
		display: none;
	}

	.auth-form-panel {
		padding: 40px 24px;
	}

	.auth-container {
		background: linear-gradient(
			135deg,
			var(--primary-dark) 0%,
			var(--primary-navy) 50%,
			var(--primary-blue) 100%
		);
	}

	.auth-form-panel {
		margin: 24px;
		border-radius: 24px;
		box-shadow: var(--shadow-xl);
	}
}

@media (max-width: 480px) {
	.auth-form-panel {
		margin: 16px;
		padding: 32px 20px;
		border-radius: 20px;
	}

	.auth-brand-text {
		font-size: 1.5rem;
	}

	.auth-heading h1 {
		font-size: 1.25rem;
	}

	.form-options {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
	}
}

/* High Contrast Focus States for Accessibility */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* Print Styles */
@media print {
	.auth-hero {
		display: none;
	}
}
