:root {
	--bg-fallback: #f8fafc;
	--card-bg: #ffffff;
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--text-main: #1e293b;
	--text-muted: #64748b;
	--border-light: #e2e8f0;
	--input-bg: #ffffff;
	--dot-color: rgba(30, 41, 59, 0.3);
	--spotlight-color: #3b82f6;
	
	--shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	--shadow-input: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
	--radius: 12px;
	--easing: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text-main);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	background-color: var(--bg-fallback);
	background-image: url('/elements/img/blue-lake.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed; 
}

.bg-dots {
	position: fixed;
	inset: 0;
	z-index: -2;
	background-image: radial-gradient(var(--dot-color) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(248, 250, 252, 0.55));
	background-size: 24px 24px, cover;
}

.bg-spotlight {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(var(--spotlight-color) 1px, transparent 1px);
	background-size: 24px 24px;
	mask-image: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
	-webkit-mask-image: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
	pointer-events: none;
	opacity: 0.8;
	mix-blend-mode: overlay;
}

.auth-card {
	width: 90%;
	max-width: 400px;
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border-light);
	padding: 2.5rem;
	position: relative;
	z-index: 1;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.5) inset, var(--shadow-card);
}

.card-header {
	text-align: center;
	margin-bottom: 2rem;
}

.logo-mark {
	display: inline-flex;
	padding: 12px;
	background: #eff6ff;
	color: var(--primary);
	border-radius: 12px;
	margin-bottom: 1rem;
}

.subtitle {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.form-group {
	margin-bottom: 0.7rem;
}

.input-wrapper {
	position: relative;
}

.form-control {
	width: 100%;
	padding: 12px 16px;
	background: var(--input-bg);
	border: 1px solid var(--border-light);
	border-radius: 8px;
	color: var(--text-main);
	font-size: 1rem;
	transition: all 0.2s var(--easing);
	outline: none;
	box-shadow: var(--shadow-input);
}

.form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.floating-label {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
	transition: all 0.2s var(--easing);
	font-size: 0.95rem;
	padding: 0 4px;
	background: transparent;
	transform-origin: left top;
}

.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
	top: 0;
	transform: translateY(-50%) scale(0.85);
	color: var(--primary);
	font-weight: 500;
	background: var(--card-bg); 
}

.form-actions {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}

.custom-checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.custom-checkbox input {
	display: none;
}

.checkmark {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--border-light);
	border-radius: 4px;
	background: white;
	margin-right: 8px;
	position: relative;
	transition: all 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
	background: var(--primary);
	border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.label-text {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.button {
	width: 100%;
	padding: 12px;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
}

.button:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
}

.button:active {
	transform: translateY(0);
}

.message {
	padding: 10px;
	border-radius: 6px;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
	text-align: center;
	font-weight: 500;
}

.message-error {
	background: #fef2f2;
	border: 1px solid #fee2e2;
	color: #ef4444;
}

.legal {
	margin-top: 2rem;
	text-align: center;
	font-size: 0.75rem;
	color: var(--text-muted);
}

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

.auth-footer-link { 
	margin-top: 1.5rem; 
	text-align: center; 
	font-size: 0.9rem; 
	color: var(--text-muted); 
}

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

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

.legal a {
	color: var(--text-main);
	text-decoration: none;
	border-bottom: 1px dotted var(--border-light);
}

.legal a:hover {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.grecaptcha-badge {
	visibility: hidden !important;
}

@media (max-width: 480px) {
	.auth-card {
		padding: 1.5rem;
		width: 95%;
	}
}