:root {
	--primary-color: #3A86FF;
	--primary-hover: #3275E0;
	--background-start: #EBF4FF;
	--background-end: #FFFFFF;
	--surface-color: rgba(255, 255, 255, 0.85);
	--surface-border: rgba(255, 255, 255, 0.2);
	--text-primary: #1D2B48;
	--text-secondary: #6A748C;
	--border-color: #DDE4F0;
	--focus-ring: rgba(58, 134, 255, 0.25);
	--error-bg: #FFE3E3;
	--error-text: #B42323;
	--error-border: #FFC5C5;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: linear-gradient(135deg, var(--background-start), var(--background-end));
	color: var(--text-primary);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	-webkit-font-smoothing: antialiased;
}

.login-container {
	width: 100%;
	max-width: 420px;
	background: var(--surface-color);
	padding: 48px;
	border-radius: 24px;
	box-shadow: 0 16px 48px rgba(29, 43, 72, 0.1);
	text-align: center;
	border: 1px solid var(--surface-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.logo {
	width: 60px;
	height: 60px;
	background-color: var(--primary-color);
	border-radius: 16px;
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 28px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

.lang-switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; }
.lang-switcher a {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	min-height: 32px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary);
	background: #eef3f6;
	border: 1px solid var(--border-color);
	line-height: 1.2;
}
.lang-switcher a:hover { background: #e2eaf0; }
.lang-switcher a.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.login-container h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.login-container p { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }

.error-message {
	background-color: var(--error-bg);
	color: var(--error-text);
	border: 1px solid var(--error-border);
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 24px;
	font-size: 14px;
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.form-group input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	font-size: 16px;
	background-color: #fff;
}
.form-group input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px var(--focus-ring);
}

.btn {
	width: 100%;
	padding: 16px;
	min-height: 48px;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	background: var(--primary-color);
	color: white;
	box-shadow: 0 6px 20px rgba(58, 134, 255, 0.35);
	touch-action: manipulation;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

.login-footer { text-align: center; padding: 20px 0 0; font-size: 14px; color: #000; }
.login-footer a { color: blue; text-decoration: none; }

@media (max-width: 480px) {
	.login-container {
		padding: 28px 20px 22px;
		border-radius: 20px;
	}
	.login-container h1 { font-size: 24px; }
	.login-container p { font-size: 15px; margin-bottom: 24px; }
	.logo { width: 52px; height: 52px; font-size: 24px; margin-bottom: 16px; }
}

@media (max-width: 360px) {
	.login-container { padding: 22px 16px 18px; }
	.lang-switcher a { font-size: 12px; padding: 5px 8px; }
}
