/* ============================================
   Lecaroz Hubster — Login v2
   Premium glassmorphism login
   ============================================ */

* { margin:0; padding:0; box-sizing:border-box; }

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: #0B1120;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #E2E8F0;
}

/* Animated Background */
.login-bg {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 0;
	overflow: hidden;
}

.login-bg-circle {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
}

.login-bg-circle.c1 {
	width: 600px; height: 600px;
	background: radial-gradient(circle, #2563EB, transparent 70%);
	top: -150px; left: -100px;
	animation: floatCircle 20s ease-in-out infinite;
}

.login-bg-circle.c2 {
	width: 500px; height: 500px;
	background: radial-gradient(circle, #7C3AED, transparent 70%);
	bottom: -100px; right: -100px;
	animation: floatCircle 25s ease-in-out infinite reverse;
}

.login-bg-circle.c3 {
	width: 400px; height: 400px;
	background: radial-gradient(circle, #0EA5E9, transparent 70%);
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	animation: floatCircle 18s ease-in-out infinite 5s;
}

@keyframes floatCircle {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(40px, -30px) scale(1.05); }
	50% { transform: translate(-20px, 40px) scale(0.95); }
	75% { transform: translate(30px, 20px) scale(1.02); }
}

/* Container */
.login-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	padding: 20px;
}

/* Card */
.login-card, .version-selector {
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 40px 36px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.version-selector {
	opacity: 0;
	transform: translateY(20px) scale(0.95);
	max-width: 600px;
}

/* Logo */
.login-logo {
	text-align: center;
	margin-bottom: 20px;
}

.login-logo img {
	height: 48px;
	filter: brightness(1.2);
}

/* Titles */
.login-title {
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	color: #F8FAFC;
	margin-bottom: 6px;
	letter-spacing: -0.5px;
}

.login-subtitle {
	text-align: center;
	font-size: 14px;
	color: #94A3B8;
	margin-bottom: 32px;
}

/* Form */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #94A3B8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.input-wrapper {
	position: relative;
}

.input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #475569;
	pointer-events: none;
	transition: color 0.2s;
}

.input-wrapper input {
	width: 100%;
	padding: 14px 16px 14px 44px;
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	color: #F8FAFC;
	font-size: 15px;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s;
	outline: none;
}

.input-wrapper input::placeholder { color: #475569; }

.input-wrapper input:focus {
	border-color: #2563EB;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon { color: #2563EB; }

/* Error */
.login-error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #EF4444;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 16px;
	text-align: center;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-8px); }
	40% { transform: translateX(8px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

/* Button */
.login-btn {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 15px;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	overflow: hidden;
}

.login-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

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

.login-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.spinner {
	width: 18px;
	height: 18px;
	color: white;
}

/* Footer */
.login-footer {
	text-align: center;
	margin-top: 24px;
	font-size: 12px;
	color: #475569;
}

/* ===== Version Selector ===== */
.version-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 8px;
}

.version-card {
	display: block;
	padding: 28px 20px;
	background: rgba(30, 41, 59, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.version-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	opacity: 0;
	transition: opacity 0.3s;
}

.version-card.classic::before { background: linear-gradient(90deg, #F59E0B, #D97706); }
.version-card.modern::before { background: linear-gradient(90deg, #2563EB, #7C3AED); }

.version-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.version-card:hover::before { opacity: 1; }

.version-icon {
	font-size: 36px;
	margin-bottom: 12px;
}

.version-card h3 {
	font-size: 16px;
	font-weight: 700;
	color: #F8FAFC;
	margin-bottom: 8px;
}

.version-card p {
	font-size: 12px;
	color: #94A3B8;
	line-height: 1.5;
	margin-bottom: 12px;
}

.version-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.06);
	color: #94A3B8;
}

.version-tag.recommended {
	background: rgba(37, 99, 235, 0.15);
	color: #60A5FA;
}

/* Responsive */
@media (max-width: 640px) {
	.login-container { max-width: 100%; }
	.version-cards { grid-template-columns: 1fr; }
	.version-selector { max-width: 100%; }
	.login-card, .version-selector { padding: 28px 24px; }
}
