/**
 * Bee1 Custom Login Page Styles
 * Modern, animated, fully responsive login page
 */

/* Reset & Base */
.bee1-login-body {
	margin: 0;
	padding: 0;
	font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Page Container */
.bee1-login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: relative;
	overflow: hidden;
}

/* Animated Background Elements */
.bee1-login-page::before {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	top: -200px;
	right: -200px;
	animation: float 20s ease-in-out infinite;
}

.bee1-login-page::after {
	content: '';
	position: absolute;
	width: 300px;
	height: 300px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	bottom: -150px;
	left: -150px;
	animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

	0%,
	100% {
		transform: translate(0, 0) rotate(0deg);
	}

	33% {
		transform: translate(30px, -30px) rotate(120deg);
	}

	66% {
		transform: translate(-20px, 20px) rotate(240deg);
	}
}

/* Login Container */
.bee1-login-container {
	width: 100%;
	max-width: 1100px;
	position: relative;
	z-index: 1;
	animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Login Card */
.bee1-login-card {
	display: flex;
	background: #ffffff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	min-height: 600px;
}

/* Left Side - Form */
.bee1-login-left {
	flex: 0 0 50%;
	max-width: 50%;
	padding: 60px 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
}

.bee1-login-left-inner {
	width: 100%;
	max-width: 400px;
}

/* Logo */
.bee1-login-logo {
	text-align: center;
	margin-bottom: 32px;
	animation: fadeIn 0.8s ease-out 0.2s both;
}

.bee1-login-logo img {
	max-width: 80px;
	height: auto;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Heading */
.bee1-login-heading {
	font-size: 28px;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 32px;
	text-align: center;
	animation: fadeIn 0.8s ease-out 0.3s both;
}

/* Alerts */
.bee1-login-alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	margin-bottom: 24px;
	font-size: 14px;
	animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bee1-login-error {
	background: #fee;
	border: 1px solid #fcc;
	color: #c33;
}

.bee1-login-success {
	background: #efe;
	border: 1px solid #cfc;
	color: #3c3;
}

.bee1-login-alert svg {
	flex-shrink: 0;
}

/* Form */
.bee1-login-form {
	animation: fadeIn 0.8s ease-out 0.4s both;
}

.bee1-form-field {
	margin-bottom: 20px;
}

.bee1-form-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 8px;
}

.bee1-form-field input[type="text"],
.bee1-form-field input[type="password"],
.bee1-form-field input[type="email"] {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 15px;
	font-family: inherit;
	transition: all 0.3s ease;
	background: #f7fafc;
	box-sizing: border-box;
}

.bee1-form-field input:focus {
	outline: none;
	border-color: var(--bee1-primary);
	background: #ffffff;
	box-shadow: 0 0 0 4px var(--bee1-primary-light);
	transform: translateY(-2px);
}

.bee1-form-field input::placeholder {
	color: #a0aec0;
}

/* Login Options */
.bee1-login-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 24px 0;
	gap: 16px;
	flex-wrap: wrap;
}

/* Custom Checkbox */
.bee1-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.bee1-checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.bee1-checkbox-custom {
	width: 20px;
	height: 20px;
	border: 2px solid #cbd5e0;
	border-radius: 6px;
	background: #f7fafc;
	transition: all 0.3s ease;
	position: relative;
	flex-shrink: 0;
}

.bee1-checkbox-custom::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 6px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.2s ease;
}

.bee1-checkbox-label input:checked~.bee1-checkbox-custom {
	background: var(--bee1-primary);
	border-color: var(--bee1-primary);
}

.bee1-checkbox-label input:checked~.bee1-checkbox-custom::after {
	transform: rotate(45deg) scale(1);
}

.bee1-checkbox-text {
	font-size: 14px;
	color: #4a5568;
}

.bee1-forgot-link {
	font-size: 14px;
	color: var(--bee1-primary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.bee1-forgot-link:hover {
	color: var(--bee1-primary-dark);
	text-decoration: underline;
}

/* Submit Button */
.bee1-login-submit {
	width: 100%;
	padding: 16px 24px;
	background: var(--bee1-primary);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
}

.bee1-login-submit::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.bee1-login-submit:hover::before {
	width: 400px;
	height: 400px;
}

.bee1-login-submit:hover {
	background: var(--bee1-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bee1-login-submit:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bee1-login-submit span,
.bee1-login-submit svg {
	position: relative;
	z-index: 1;
}

.bee1-login-submit svg {
	transition: transform 0.3s ease;
}

.bee1-login-submit:hover svg {
	transform: translateX(-4px);
}

/* Footer */
.bee1-login-footer {
	margin-top: 32px;
	text-align: center;
	animation: fadeIn 0.8s ease-out 0.5s both;
}

.bee1-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #718096;
	text-decoration: none;
	transition: all 0.2s ease;
}

.bee1-back-link:hover {
	color: var(--bee1-primary);
}

.bee1-back-link svg {
	transition: transform 0.2s ease;
}

.bee1-back-link:hover svg {
	transform: translateX(4px);
}

/* Right Side - Hero */
.bee1-login-right {
	flex: 0 0 50%;
	max-width: 50%;
	position: relative;
	min-height: 600px;
}

.bee1-login-hero {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 60px 50px;
}

.bee1-login-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
	backdrop-filter: blur(1px);
}

.bee1-login-hero-content {
	position: relative;
	z-index: 1;
	color: #ffffff;
	animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bee1-hero-subtitle {
	font-size: 42px;
	font-weight: 300;
	margin: 0;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bee1-hero-subtitle-accent {
	font-size: 52px;
	font-weight: 700;
	margin: 8px 0 0;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* RTL Support */
/* Note: Submit button SVG (checkmark) should NOT rotate - it's universal */

[dir="rtl"] .bee1-back-link svg {
	transform: rotate(180deg);
}

[dir="rtl"] .bee1-back-link:hover svg {
	transform: rotate(180deg) translateX(4px);
}

/* Prevent alert icons and submit button icons from flipping in RTL */
[dir="rtl"] .bee1-login-alert svg,
[dir="rtl"] .bee1-login-submit svg {
	transform: none !important;
}

/* Responsive Design */
@media (max-width: 968px) {
	.bee1-login-card {
		flex-direction: column-reverse;
	}

	.bee1-login-right {
		min-height: 300px;
	}

	.bee1-login-left {
		padding: 40px 30px;
	}

	.bee1-hero-subtitle {
		font-size: 32px;
	}

	.bee1-hero-subtitle-accent {
		font-size: 38px;
	}
}

@media (max-width: 640px) {
	.bee1-login-page {
		padding: 10px;
	}

	.bee1-login-card {
		border-radius: 16px;
	}

	.bee1-login-left {
		padding: 30px 20px;
	}

	.bee1-login-heading {
		font-size: 24px;
	}

	.bee1-login-hero {
		padding: 40px 30px;
	}

	.bee1-hero-subtitle {
		font-size: 26px;
	}

	.bee1-hero-subtitle-accent {
		font-size: 32px;
	}

	.bee1-login-options {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Loading State */
.bee1-login-submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.bee1-login-submit[disabled]::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
