:root {
	--brand-teal: #1abc9c;
	--brand-teal-dark: #16a085;
	--text: #2c3e50;
	--muted: #7f8c8d;
	--border: #bdc3c7;
}

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

body {
	margin: 0;
	font-family: "Montserrat", system-ui, -apple-system, sans-serif;
	color: var(--text);
	background: #fff;
}

.auth-page {
	min-height: 100vh;
}

.auth-topbar {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 50;
}

.auth-topbar .lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.15rem 0.35rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--border);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.auth-topbar .lang-switch__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	text-decoration: none;
	font-size: 1.1rem;
	line-height: 1;
	transition: background 0.2s, transform 0.15s;
}

.auth-topbar .lang-switch__link:hover {
	background: rgba(26, 188, 156, 0.12);
	transform: scale(1.06);
}

.auth-topbar .lang-switch__link.is-active {
	background: rgba(26, 188, 156, 0.2);
	box-shadow: 0 0 0 2px var(--brand-teal);
}

.auth-split {
	display: flex;
	min-height: 100vh;
}

.auth-panel {
	flex: 0 0 38%;
	max-width: 520px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem;
}

.auth-panel-inner {
	width: 100%;
	max-width: 380px;
}

.brand {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--text);
	letter-spacing: 0.02em;
	margin-bottom: 2rem;
}

a.brand {
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s;
}

a.brand:hover {
	opacity: 0.82;
}

a.brand:focus-visible {
	outline: 2px solid var(--brand-teal);
	outline-offset: 3px;
	border-radius: 2px;
}

.brand span {
	color: var(--brand-teal);
}

h1 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.subtitle {
	color: var(--muted);
	font-size: 0.95rem;
	margin: 0 0 2rem;
	line-height: 1.55;
}

.form-field {
	margin-bottom: 1.5rem;
}

.form-field label {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.form-field input {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--border);
	padding: 0.5rem 0;
	font-size: 1rem;
	font-family: inherit;
	background: transparent;
	outline: none;
}

.form-field input:focus {
	border-bottom-color: var(--brand-teal);
}

.forgot-row {
	text-align: right;
	margin: -0.5rem 0 1.25rem;
}

.forgot-row a {
	color: var(--muted);
	font-size: 0.85rem;
	text-decoration: none;
}

.forgot-row a:hover {
	color: var(--brand-teal);
}

.btn-primary {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.95rem 1rem;
	border: none;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--brand-teal), var(--brand-teal-dark));
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	font-family: inherit;
}

.btn-primary:hover {
	filter: brightness(1.06);
}

.btn-primary:disabled,
.btn-primary.is-submitting {
	opacity: 0.72;
	cursor: wait;
	filter: none;
}

.btn-primary .btn-icon {
	flex-shrink: 0;
}

.auth-visual {
	flex: 1;
	background-color: #34495e;
	background-image: url("../images/login-bg.png");
	background-size: cover;
	background-position: center;
	min-height: 280px;
}

.alert {
	padding: 0.75rem 0.9rem;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.alert-error {
	background: #fdecea;
	color: #c0392b;
}

.alert-info {
	background: #e8f8f5;
	color: #0d6756;
}

.links-row {
	margin-top: 1.35rem;
	text-align: center;
}

.links-row a {
	color: var(--brand-teal);
	font-size: 0.9rem;
	text-decoration: none;
	font-weight: 600;
}

.links-row a:hover {
	text-decoration: underline;
}

.links-muted {
	color: var(--muted);
	font-size: 0.9rem;
	margin-right: 0.35rem;
}

.links-sep {
	color: var(--border);
	margin: 0 0.35rem;
	user-select: none;
}

.dashboard-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	padding-top: 4rem;
	background: #f4f6f8;
	position: relative;
}

.dashboard-card {
	background: #fff;
	padding: 2.5rem;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	max-width: 420px;
	width: 100%;
	text-align: center;
}

.dashboard-card h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.dashboard-card p {
	color: var(--muted);
	margin: 0 0 1.5rem;
	word-break: break-all;
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border: 1px solid var(--border);
	background: #fff;
	border-radius: 4px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	color: var(--text);
}

.btn-secondary:hover {
	border-color: var(--brand-teal);
	color: var(--brand-teal);
}

.btn-secondary:disabled,
.btn-secondary.is-submitting {
	opacity: 0.65;
	cursor: wait;
}

@media (max-width: 900px) {
	.auth-split {
		flex-direction: column;
	}

	.auth-visual {
		order: 1;
		min-height: 200px;
		flex: none;
	}

	.auth-panel {
		order: 2;
		flex: none;
		max-width: none;
		padding: 2rem 1.5rem 2.5rem;
	}
}
