/* Branded login / registration page. */
.nn-page__title { display: none; }
.nn-page { padding: 1.5rem 0 3rem !important; }
.nn-auth {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1rem;
}
.nn-auth__card {
	width: 100%;
	max-width: 27rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1.5rem;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
	padding: 2rem 1.8rem;
}
.nn-auth__head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 1.3rem;
}
.nn-auth__mark { width: 2.8rem; height: 2.8rem; flex-shrink: 0; }
.nn-auth__brand { display: flex; flex-direction: column; line-height: 1; }
.nn-auth__brand strong { font-size: 1.25rem; font-weight: 800; color: #111827; }
.nn-auth__brand em { font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #059669; margin-top: 3px; }
.nn-auth__head h1 { font-size: 1.4rem; margin: 0; }

.nn-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	background: #f3f4f6;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 1.3rem;
}
.nn-auth__tab {
	border: 0;
	background: transparent;
	padding: 0.6rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #6b7280;
	cursor: pointer;
}
.nn-auth__card[data-tab="login"] .nn-auth__tab[data-form="login"],
.nn-auth__card[data-tab="register"] .nn-auth__tab[data-form="register"] {
	background: #fff;
	color: #059669;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.nn-auth__form { display: none; flex-direction: column; gap: 0.85rem; }
.nn-auth__card[data-tab="login"] .nn-auth__form--login,
.nn-auth__card[data-tab="register"] .nn-auth__form--register { display: flex; }

.nn-auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.nn-auth__field { display: flex; flex-direction: column; gap: 0.3rem; }
.nn-auth__field span { font-size: 0.82rem; font-weight: 700; color: #374151; }
.nn-auth__field input {
	padding: 0.7rem 0.85rem;
	border: 1.5px solid #e5e7eb;
	border-radius: 0.75rem;
	font: inherit;
}
.nn-auth__field input:focus { outline: none; border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14); }
.nn-auth__check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: #374151; }
.nn-auth__check a { color: #047857; font-weight: 700; }
.nn-auth__btn {
	display: inline-block;
	text-align: center;
	background: #059669;
	color: #fff;
	font-weight: 800;
	padding: 0.8rem 1.2rem;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	font-size: 1rem;
}
.nn-auth__btn:hover { background: #047857; }
.nn-auth__btn--ghost { background: #fff; color: #374151; border: 1.5px solid #e5e7eb; }
.nn-auth__forgot { font-size: 0.85rem; color: #6b7280; text-align: center; text-decoration: underline; }
.nn-auth__note { font-size: 0.8rem; color: #6b7280; margin: 0; }
.nn-auth__lead { color: #6b7280; margin: 0 0 1rem; }
.nn-auth__notice { padding: 0.7rem 0.9rem; border-radius: 0.75rem; font-size: 0.9rem; font-weight: 600; }
.nn-auth__notice--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.nn-auth__notice--ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.nn-auth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== L4: prevent the surname field from overflowing the card ===== */
.nn-auth__field { min-width: 0; }
.nn-auth__field input { width: 100%; box-sizing: border-box; }
.nn-auth__form, .nn-auth__check, .nn-auth__row { box-sizing: border-box; max-width: 100%; }

/* ===== L5: standalone forgot/reset forms (always visible) ===== */
.nn-auth__form--single { display: flex !important; }
.nn-auth__title { margin: 0.2rem 0 0.4rem; font-size: 1.35rem; color: #064e3b; text-align: center; }
.nn-auth__card--single .nn-auth__lead { text-align: center; }
