:root {
	--green: #92c83e;
	--green-dark: #5f9c2a;
	--green-deep: #3d7a1c;
	--green-tint: #f1f8e6;
	--slate-900: #1b222b;
	--slate-800: #232c37;
	--slate-600: #4a5867;
	--slate-500: #6b7b8c;
	--slate-200: #e4e9ee;
	--slate-100: #eef2f6;
	--canvas: #f4f7f9;
	--white: #fff;
	--red: #e0544e;
	--red-tint: #fdeceb;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow-lg: 0 10px 34px rgba(27, 34, 43, .11);
	--ease: cubic-bezier(.4, 0, .2, 1);
}

/*
 * Self-hosted — never Google Fonts/a CDN (§11, §14): no outbound request on
 * page load, works on a private/offline environment. local() first so an
 * OS-installed copy is used before downloading ours. font-weight: 100 900
 * because this is the variable font — one file covers every weight the
 * prototype uses (400/500/600/700/800), not a fixed single weight.
 */
@font-face {
	font-family: 'Inter';
	src:
		local('Inter'),
		url('../fonts/InterVariable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
	box-sizing: border-box;
}

button, input {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	appearance: none;
	-webkit-appearance: none;
}

.ecoe-auth {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
	background: var(--canvas);
	color: var(--slate-800);
}

.ecoe-auth__card {
	width: 100%;
	max-width: 380px;
	background: var(--white);
	border: 1px solid var(--slate-200);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 36px 32px 32px;
	text-align: center;
}

.ecoe-auth__logo {
	width: 170px;
	height: auto;
	margin: 0 auto 24px;
	display: block;
}

.ecoe-auth__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--green-dark);
	letter-spacing: -.01em;
	margin: 0 0 4px;
}

.ecoe-auth__subtitle {
	font-size: 13px;
	color: var(--slate-500);
	margin: 0 0 24px;
}

.ecoe-auth__error {
	background: var(--red-tint);
	color: var(--red);
	font-size: 12.5px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	margin-bottom: 18px;
	text-align: left;
}

.ecoe-auth__form {
	text-align: left;
}

.ecoe-auth__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--slate-600);
	margin: 14px 0 6px;
}

.ecoe-auth__label:first-of-type {
	margin-top: 0;
}

.ecoe-auth__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--slate-200);
	border-radius: var(--radius-sm);
	background: var(--white);
	font-size: 13.5px;
	transition: border-color .16s, box-shadow .16s;
}

.ecoe-auth__input:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(146, 200, 62, .16);
}

.ecoe-auth__hint {
	font-size: 11.5px;
	color: var(--slate-500);
	margin: 6px 0 0;
}

.ecoe-auth__submit {
	display: block;
	width: 100%;
	margin-top: 22px;
	padding: 11px 15px;
	border: none;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--green), var(--green-dark));
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	box-shadow: 0 4px 13px rgba(146, 200, 62, .32);
	transition: box-shadow .16s, transform .16s;
}

.ecoe-auth__submit:hover {
	box-shadow: 0 6px 18px rgba(146, 200, 62, .42);
}

.ecoe-auth__submit:active {
	transform: translateY(1px);
}

.ecoe-auth__password-wrap {
	position: relative;
}

.ecoe-auth__password-wrap .ecoe-auth__input {
	padding-right: 42px;
}

.ecoe-auth__toggle-password {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: var(--slate-500);
	transition: background .16s, color .16s;
}

.ecoe-auth__toggle-password:hover {
	background: var(--slate-100);
	color: var(--slate-800);
}

.ecoe-auth__toggle-password:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}

.ecoe-auth__toggle-password svg {
	width: 17px;
	height: 17px;
}

.ecoe-auth__toggle-password .ecoe-auth__eye-icon--hide {
	display: none;
}

.ecoe-auth__toggle-password[aria-pressed="true"] .ecoe-auth__eye-icon--show {
	display: none;
}

.ecoe-auth__toggle-password[aria-pressed="true"] .ecoe-auth__eye-icon--hide {
	display: block;
}

.ecoe-auth__forgot-link {
	display: block;
	margin: 14px auto 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--slate-500);
	transition: color .16s;
}

.ecoe-auth__forgot-link:hover {
	color: var(--green-dark);
}

.ecoe-auth__forgot-link:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- forgot-password modal ---------- */

.ecoe-auth-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(27, 34, 43, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s var(--ease);
}

.ecoe-auth-modal-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.ecoe-auth-modal {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 32px 28px 28px;
	transform: scale(.96) translateY(6px);
	opacity: 0;
	transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.ecoe-auth-modal-overlay.is-open .ecoe-auth-modal {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.ecoe-auth-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	font-size: 20px;
	line-height: 1;
	color: var(--slate-500);
	transition: background .16s, color .16s;
}

.ecoe-auth-modal__close:hover {
	background: var(--slate-100);
	color: var(--slate-800);
}

.ecoe-auth-modal__close:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}

.ecoe-auth-modal__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--green-dark);
	margin: 0 0 6px;
}

.ecoe-auth-modal__subtitle {
	font-size: 12.5px;
	color: var(--slate-500);
	margin: 0 0 18px;
}

.ecoe-auth-modal__message {
	font-size: 12.5px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	margin-top: 14px;
	background: var(--red-tint);
	color: var(--red);
}

.ecoe-auth-modal__success {
	text-align: center;
	padding: 8px 0 4px;
}

.ecoe-auth-modal__success p {
	font-size: 13px;
	color: var(--slate-600);
	margin: 14px 0 0;
	line-height: 1.5;
}

/* ---------- shared success tick (modal + inline banners) ---------- */

.ecoe-auth__tick {
	width: 56px;
	height: 56px;
}

.ecoe-auth__tick--inline {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.ecoe-auth__tick-circle {
	stroke: var(--green);
	stroke-width: 2.5;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: ecoeTickCircle .5s var(--ease) forwards;
}

.ecoe-auth__tick-check {
	stroke: var(--green);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 36;
	stroke-dashoffset: 36;
	animation: ecoeTickCheck .3s var(--ease) .45s forwards;
}

@keyframes ecoeTickCircle {
	to { stroke-dashoffset: 0; }
}

@keyframes ecoeTickCheck {
	to { stroke-dashoffset: 0; }
}

/* ---------- inline success banner (e.g. after a completed password reset) ---------- */

.ecoe-auth__success {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--green-tint);
	color: var(--green-deep);
	font-size: 12.5px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	margin-bottom: 18px;
	text-align: left;
}
