/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
	background: #f0f2f5;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ── Page Layout ──────────────────────────────────────────────────────── */
.login-page {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	height: 100vh;
	overflow: auto;
}

.login-wrapper {
	display: flex;
	align-items: center;
	gap: 48px;
	width: 100%;
	max-width: 980px;
}

/* ── Left Brand Panel ─────────────────────────────────────────────────── */
.brand-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-bottom: 60px;
}

.brand-logo-text {
	font-size: 2.6rem;
	font-weight: 800;
	color: #000;
	letter-spacing: -1px;
	line-height: 1;
	margin-bottom: 14px;
}

.brand-tagline {
	font-size: 1.2rem;
	line-height: 1.55;
	color: #1c1e21;
	font-weight: 400;
	max-width: 380px;
}

/* ── Right Form Panel ─────────────────────────────────────────────────── */
.form-panel {
	width: 396px;
	flex-shrink: 0;
}

.login-card {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1);
}

/* ── Inputs ───────────────────────────────────────────────────────────── */
.login-card .form-control {
	border-radius: 6px;
	border: 1px solid #ccd0d5;
	font-size: 1rem;
	padding: 14px 16px;
	color: #1c1e21;
	background: #fff;
	transition: border-color .15s;
	height: auto;
}
.login-card .form-control:focus {
	border-color: #1877f2;
	box-shadow: 0 0 0 2px rgba(24,119,242,.2);
	outline: none;
}
.login-card .form-control.is-invalid {
	border-color: #e02020;
	box-shadow: none;
}
.login-card .form-control::placeholder { color: #bcc0c4; }

/* ── Password toggle ──────────────────────────────────────────────────── */
.password-wrapper { position: relative; }
.toggle-pwd {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #606770;
	font-size: 1rem;
	padding: 0;
	line-height: 1;
}
.toggle-pwd:hover { color: #1877f2; }

/* ── Login Button ─────────────────────────────────────────────────────── */
.btn-fb-login {
	background: #1877f2;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	border: none;
	border-radius: 6px;
	padding: 14px;
	width: 100%;
	cursor: pointer;
	transition: background .15s;
	letter-spacing: .2px;
}
.btn-fb-login:hover:not(:disabled) { background: #166fe5; }
.btn-fb-login:disabled { opacity: .75; cursor: not-allowed; }

/* ── Forgot / Divider / Create ────────────────────────────────────────── */
.forgot-link {
	display: block;
	text-align: center;
	color: #1877f2;
	font-size: .92rem;
	text-decoration: none;
	padding: 4px 0;
}
.forgot-link:hover { text-decoration: underline; }

.hr-or {
	border: none;
	border-top: 1px solid #dddfe2;
	margin: 18px 0;
}

.btn-create {
	display: block;
	width: fit-content;
	margin: 0 auto;
	background: #42b72a;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	border: none;
	border-radius: 6px;
	padding: 12px 20px;
	cursor: pointer;
	transition: background .15s;
}
.btn-create:hover { background: #36a420; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.login-footer {
	text-align: center;
	padding: 20px;
	font-size: .8rem;
	color: #90949c;
}
.login-footer a { color: #90949c; text-decoration: none; margin: 0 6px; }
.login-footer a:hover { text-decoration: underline; }
.login-footer .separator { margin: 6px 0 4px; }

/* ── Validation messages ──────────────────────────────────────────────── */
.invalid-feedback {
	display: block;
	font-size: .82rem;
	color: #e02020;
	margin-top: 4px;
}

/* ── Spinner ──────────────────────────────────────────────────────────── */
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .18em; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.login-wrapper { flex-direction: column; gap: 24px; align-items: stretch; }
	.brand-panel { text-align: center; padding-bottom: 0; }
	.brand-logo-text { font-size: 2rem; color: #000; }
	.brand-tagline { font-size: 1rem; margin: 0 auto; }
	.form-panel { width: 100%; }
}
