:root {
	--bg-1: #0f2238;
	--bg-2: #1f6379;
	--card: #ffffff;
	--text: #122437;
	--muted: #5b6f83;
	--border: #d9e3ed;
	--focus: #66b7db;
	--primary: #0f9f7d;
	--primary-dark: #0c8468;
	--link: #0a6e9f;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	padding: 24px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
	background: linear-gradient(140deg, var(--bg-1), var(--bg-2));
	position: relative;
	overflow: hidden;
}

.page-center {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bg-shape {
	position: fixed;
	border-radius: 50%;
	pointer-events: none;
}

.bg-shape.s1 {
	left: -120px;
	bottom: -120px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 72%);
}

.bg-shape.s2 {
	right: -90px;
	top: -80px;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(255,255,255,.20), rgba(255,255,255,0) 72%);
}

.login-card {
	width: min(430px, 95vw);
	background: var(--card);
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 24px 48px rgba(9, 22, 37, .28);
	border: 1px solid rgba(255,255,255,.5);
}

.brand {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #2f6f8c;
}

h1 {
	margin: 6px 0;
	font-size: 30px;
	line-height: 1.1;
	color: var(--text);
}

.subtitle {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--muted);
}

.field { margin-bottom: 14px; }

.field label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
	color: #2a4560;
}

.sc-input,
#row-language input,
#row-language select {
	width: 100%;
	height: 46px;
	padding: 0 13px;
	border: 1px solid var(--border);
	border-radius: 11px;
	font-size: 15px;
	color: #1a3550;
	background: #fcfeff;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.sc-input:focus,
#row-language input:focus,
#row-language select:focus {
	border-color: var(--focus);
	box-shadow: 0 0 0 4px rgba(102, 183, 219, .2);
}

.password-wrap { position: relative; }

.password-wrap .sc-input { padding-right: 90px; }

.toggle-pass {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	height: 30px;
	min-width: 74px;
	border: 0;
	border-radius: 8px;
	padding: 0 10px;
	background: #e8f2f9;
	color: #1f5778;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

#txtremember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--muted);
}

#txtremember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--primary);
	cursor: pointer;
}

.btn-login {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--primary), #13b691);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .2px;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(15, 159, 125, .33);
	transition: transform .12s ease, filter .12s ease, background .2s ease;
}

.btn-login:hover {
	transform: translateY(-1px);
	background: linear-gradient(135deg, var(--primary-dark), #0fa07f);
}

.assist-links {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 18px;
}

.assist-links a,
.assist-links button,
.assist-links input[type="button"] {
	border: 0;
	background: transparent;
	padding: 0;
	color: var(--link);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.assist-links a:hover,
.assist-links button:hover,
.assist-links input[type="button"]:hover {
	text-decoration: underline;
}

.sc-hide {
	display: none !important;
}

.swal2-container { z-index: 99999 !important; }

.swal2-popup.swal2-toast.sc-toast .swal2-title {
	font-size: 14px !important;
	color: #111827 !important;
	font-weight: 700 !important;
}

.swal2-popup.swal2-toast.sc-toast .swal2-html-container {
	font-size: 13px !important;
	color: #374151 !important;
}

@media (max-width: 520px) {
	.login-card { padding: 22px; border-radius: 14px; }
	h1 { font-size: 26px; }
}
