/* ===================================
   LOGIN PAGE STYLES - financeai
   =================================== */

/* Reset and override base styles */
.login-page * {
	box-sizing: border-box;
}

/* Hide any default headers */
.login-page header,
.login-page .navbar,
.login-page .header,
.login-page .navbar-standard,
.login-page .navbar-standard .navbar-header,
.login-page .navbar-standard .navbar-nav {
	display: none !important;
}

/* Override base template completely */
.login-page {
	background: #0f172a !important;
	min-height: 100vh !important;
	display: flex !important;
	align-items: flex-start !important;
	justify-content: center !important;
	padding: 1rem !important;
	position: relative !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	overflow-x: hidden !important;
	width: 100vw !important;
	height: 100vh !important;
}

/* Override any base template styles */
.login-page .container,
.login-page .main-container,
.login-page .page-container,
.login-page .page-content {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

/* Override body and html styles */
.login-page body,
.login-page html {
	background: #0f172a !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 100% !important;
	overflow-x: hidden !important;
}

/* Login form container - Glassmorphism */
.login-container {
	width: 100%;
	max-width: 500px;
	min-height: auto;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	box-shadow: 
		0 25px 50px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	padding: 2.5rem;
	position: relative;
	z-index: 2;
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin: 1rem auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
	overflow: visible;
	max-height: none;
}

/* Remove the top glow effect that was causing border visibility */
.login-container::before {
	display: none;
}

.login-container:hover {
	box-shadow: 
		0 35px 70px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Form elements */
.login-form {
	width: 100%;
	max-width: 100%;
}

.form-group {
	margin-bottom: 1.5rem;
	text-align: left;
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
	width: 100%;
}

.form-label.required::after {
	content: ' *';
	color: #ef4444;
	font-weight: 600;
}

.form-control {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	transition: all 0.3s ease;
	box-sizing: border-box;
	display: block;
	height: auto;
	line-height: 1.5;
}

.form-control:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
	background: rgba(255, 255, 255, 0.1);
}

.form-control:hover {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.form-control.error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control.success {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-error {
	color: #ef4444;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	display: none;
	text-align: left;
	width: 100%;
}

.form-error.show {
	display: block;
}

/* Password toggle */
.password-toggle {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	font-size: 0.875rem;
	user-select: none;
	z-index: 10;
}

.password-toggle:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
	width: 100%;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	height: auto;
	line-height: 1.5;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.6s ease;
}

.btn:hover::before {
	left: 100%;
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	color: white;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #2563eb, #1e40af);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
	transform: translateY(-2px);
}

.btn-secondary {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
	color: white;
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	color: #3b82f6;
	border: 2px solid #3b82f6;
}

.btn-outline:hover {
	background: #3b82f6;
	color: white;
	transform: translateY(-2px);
}

/* Header section */
.login-header {
	margin-bottom: 2rem;
	width: 100%;
	text-align: center;
}

.login-icon {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-icon::before {
	content: '🔐';
	font-size: 1.5rem;
}

.login-title {
	font-size: 2rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.5rem;
	text-align: center;
	width: 100%;
}

.login-subtitle {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
	line-height: 1.6;
	text-align: center;
	width: 100%;
}

/* Form options */
.login-form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	width: 100%;
	box-sizing: border-box;
}

.login-form-options .checkbox-group {
	display: flex;
	align-items: center;
	position: relative;
}

.login-form-options .checkbox-group input[type="checkbox"] {
	margin-right: 0.75rem;
	width: 20px;
	height: 20px;
	accent-color: #3b82f6;
	cursor: pointer;
}

.login-form-options .checkbox-group label {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.95rem;
	cursor: pointer;
	font-weight: 500;
}

.login-form-options .forgot-password {
	color: #3b82f6;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	background: rgba(59, 130, 246, 0.1);
	transition: all 0.3s ease;
}

.login-form-options .forgot-password:hover {
	color: #60a5fa;
	background: rgba(59, 130, 246, 0.15);
	transform: translateY(-1px);
}

/* Social login */
.login-social {
	text-align: center;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 2px solid rgba(255, 255, 255, 0.1);
	position: relative;
	width: 100%;
}

.login-social::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.login-social p {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2rem;
	position: relative;
	font-size: 1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.login-social-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	width: 100%;
}

.login-social-btn {
	padding: 1rem 2rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
	flex: 1;
	max-width: 200px;
}

.login-social-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left 0.5s ease;
}

.login-social-btn:hover {
	border-color: #3b82f6;
	color: #3b82f6;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
	background: rgba(255, 255, 255, 0.1);
}

.login-social-btn:hover::before {
	left: 100%;
}

.login-social-btn span {
	font-size: 1.2rem;
}

/* Success message */
.login-success-message {
	display: none;
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	padding: 1.5rem;
	border-radius: 16px;
	text-align: center;
	margin-bottom: 2rem;
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Error message */
.login-error-message {
	display: none;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: white;
	padding: 1.5rem;
	border-radius: 16px;
	text-align: center;
	margin-bottom: 2rem;
	box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Pending message */
.login-pending-message {
	display: none;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: white;
	padding: 1.5rem;
	border-radius: 16px;
	text-align: center;
	margin-bottom: 2rem;
	box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Footer section */
.login-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	width: 100%;
	text-align: center;
}

.login-footer a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 600;
}

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

/* Override any base form styles */
.login-page input,
.login-page select,
.login-page textarea {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 2px solid rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
}

.login-page input:focus,
.login-page select:focus,
.login-page textarea:focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Responsive design */
@media (max-width: 768px) {
	.login-page {
		padding: 0.5rem;
		align-items: flex-start !important;
	}
	
	.login-container {
		padding: 2rem 1.5rem;
		margin: 0.5rem auto;
		border-radius: 20px;
	}
	
	.login-title {
		font-size: 1.75rem;
	}
	
	.login-form-options {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.login-social-buttons {
		flex-direction: column;
		gap: 1rem;
	}
	
	.login-social-btn {
		justify-content: center;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.login-page {
		padding: 0.25rem;
		align-items: flex-start !important;
	}
	
	.login-container {
		padding: 1.5rem 1rem;
		margin: 0.25rem auto;
		border-radius: 16px;
	}
	
	.login-title {
		font-size: 1.5rem;
	}
	
	.form-control {
		padding: 0.625rem 0.875rem;
	}
	
	.btn {
		padding: 0.625rem 1.25rem;
	}
	
	.login-form-options {
		padding: 1rem;
	}
	
	.login-social-btn {
		padding: 0.875rem 1.5rem;
	}
}

@media (max-width: 360px) {
	.login-container {
		padding: 1rem 0.75rem;
		border-radius: 12px;
	}
	
	.login-title {
		font-size: 1.25rem;
	}
	
	.login-subtitle {
		font-size: 0.875rem;
	}
	
	.login-form-options {
		padding: 0.75rem;
	}
} 