/*!
 * Nuso Giya Forgot Password UI — stylesheet
 * Mobile-first, green & white, matches the Nuso Giya Login UI reference.
 */

:root {
	--ngfp-green-900: #0b2e3e;
	--ngfp-green-700: #0e7c4a;
	--ngfp-green-600: #128a53;
	--ngfp-green-500: #17b26a;
	--ngfp-green-100: #e6f7ee;
	--ngfp-green-50: #f2fbf6;
	--ngfp-red: #d6342c;
	--ngfp-red-50: #fdeceb;
	--ngfp-ink: #16211f;
	--ngfp-gray-600: #667085;
	--ngfp-gray-400: #98a2b3;
	--ngfp-gray-300: #d0d5dd;
	--ngfp-gray-200: #eaecef;
	--ngfp-gray-100: #f4f6f5;
	--ngfp-white: #ffffff;
	--ngfp-radius-sm: 10px;
	--ngfp-radius-md: 14px;
	--ngfp-radius-lg: 26px;
	--ngfp-shadow-sm: 0 2px 8px rgba(16, 40, 34, 0.06);
	--ngfp-shadow-md: 0 8px 24px rgba(16, 40, 34, 0.10);
	--ngfp-shadow-btn: 0 10px 22px rgba(14, 124, 74, 0.28);
	--ngfp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html.ngfp-body,
body.ngfp-body {
	margin: 0;
	padding: 0;
	background: var(--ngfp-white);
}

.ngfp-root {
	font-family: var(--ngfp-font);
	color: var(--ngfp-ink);
	background: var(--ngfp-white);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	display: flex;
	justify-content: center;
}

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

.ngfp-root button {
	font-family: inherit;
	cursor: pointer;
}

.ngfp-root a {
	text-decoration: none;
}

/* ==========================================================================
   Shell
   ========================================================================== */

.ngfp-shell {
	width: 100%;
	max-width: 480px;
	min-height: 100vh;
	background: var(--ngfp-white);
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   Header
   ========================================================================== */

.ngfp-header {
	background: linear-gradient(180deg, var(--ngfp-green-600) 0%, var(--ngfp-green-700) 100%);
	padding: max(18px, env(safe-area-inset-top)) 16px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: var(--ngfp-shadow-sm);
}

.ngfp-back {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ngfp-white);
	flex-shrink: 0;
	border-radius: 50%;
	background: none;
	border: none;
	padding: 0;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.ngfp-back:hover,
.ngfp-back:focus-visible {
	background: rgba(255, 255, 255, 0.15);
}

.ngfp-back[hidden] {
	visibility: hidden;
}

.ngfp-back svg {
	width: 22px;
	height: 22px;
}

.ngfp-header-title {
	flex: 1;
	text-align: center;
	margin: 0;
	color: var(--ngfp-white);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.2px;
	transition: opacity 0.15s ease;
}

.ngfp-header-spacer {
	width: 30px;
	flex-shrink: 0;
}

/* ==========================================================================
   Content
   ========================================================================== */

.ngfp-content {
	flex: 1;
	padding: 28px 22px 40px;
	display: flex;
	flex-direction: column;
}

.ngfp-logo-block {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 6px 0 26px;
}

.ngfp-logo-mark {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.ngfp-logo-mark svg {
	width: 100%;
	height: 100%;
}

.ngfp-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.ngfp-logo-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--ngfp-green-900);
	letter-spacing: -0.2px;
}

.ngfp-logo-tagline {
	font-size: 12px;
	font-weight: 600;
	color: var(--ngfp-green-600);
}

.ngfp-title {
	margin: 0 0 6px;
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	color: var(--ngfp-green-900);
}

.ngfp-title--center {
	text-align: center;
}

.ngfp-subtitle {
	margin: 0 0 22px;
	text-align: center;
	font-size: 14px;
	color: var(--ngfp-gray-600);
	line-height: 1.5;
}

.ngfp-subtitle--center {
	text-align: center;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.ngfp-step {
	display: none;
	animation: ngfp-step-in 0.25s ease;
}

.ngfp-step.is-active {
	display: block;
}

@keyframes ngfp-step-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   Alert
   ========================================================================== */

.ngfp-alert {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: var(--ngfp-red-50);
	color: var(--ngfp-red);
	border: 1px solid rgba(214, 52, 44, 0.18);
	border-radius: var(--ngfp-radius-sm);
	padding: 12px 14px;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 18px;
	animation: ngfp-alert-in 0.25s ease;
}

.ngfp-alert[hidden] {
	display: none;
}

.ngfp-alert svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

@keyframes ngfp-alert-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   Form / fields
   ========================================================================== */

.ngfp-form {
	display: flex;
	flex-direction: column;
}

.ngfp-field-group {
	margin-bottom: 18px;
}

.ngfp-field-group label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ngfp-green-900);
	margin-bottom: 8px;
}

.ngfp-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	border: 1.5px solid var(--ngfp-gray-200);
	border-radius: var(--ngfp-radius-md);
	background: var(--ngfp-white);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ngfp-input-wrap:focus-within {
	border-color: var(--ngfp-green-600);
	box-shadow: 0 0 0 3px var(--ngfp-green-100);
}

.ngfp-input-wrap.is-invalid {
	border-color: var(--ngfp-red);
}

.ngfp-input-wrap.is-invalid:focus-within {
	box-shadow: 0 0 0 3px var(--ngfp-red-50);
}

.ngfp-input-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	flex-shrink: 0;
	color: var(--ngfp-gray-400);
}

.ngfp-input-icon svg {
	width: 18px;
	height: 18px;
}

.ngfp-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	padding: 15px 14px 15px 0;
	font-size: 15px;
	color: var(--ngfp-ink);
	font-family: inherit;
}

.ngfp-input::placeholder {
	color: var(--ngfp-gray-400);
}

.ngfp-toggle-password {
	background: none;
	border: none;
	width: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ngfp-gray-400);
	padding: 0;
}

.ngfp-toggle-password svg {
	width: 19px;
	height: 19px;
}

.ngfp-toggle-password:hover,
.ngfp-toggle-password:focus-visible {
	color: var(--ngfp-green-600);
}

.ngfp-field-error {
	display: block;
	min-height: 0;
	font-size: 12.5px;
	color: var(--ngfp-red);
	font-weight: 600;
	margin-top: 6px;
}

.ngfp-field-error:empty {
	display: none;
}

/* ==========================================================================
   OTP boxes
   ========================================================================== */

.ngfp-otp-group {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.ngfp-otp-box {
	width: 100%;
	aspect-ratio: 1 / 1;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: var(--ngfp-ink);
	border: 1.5px solid var(--ngfp-gray-200);
	border-radius: var(--ngfp-radius-md);
	background: var(--ngfp-white);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}

.ngfp-otp-box:focus {
	border-color: var(--ngfp-green-600);
	box-shadow: 0 0 0 3px var(--ngfp-green-100);
}

.ngfp-otp-group.is-invalid .ngfp-otp-box {
	border-color: var(--ngfp-red);
}

/* ==========================================================================
   Timer row
   ========================================================================== */

.ngfp-timer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 24px;
}

.ngfp-timer {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ngfp-gray-600);
	font-variant-numeric: tabular-nums;
}

.ngfp-timer.is-expired {
	color: var(--ngfp-red);
}

/* ==========================================================================
   Links / buttons
   ========================================================================== */

.ngfp-link-muted {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ngfp-green-600);
	background: none;
	border: none;
	padding: 0;
}

.ngfp-link-muted:hover:not(:disabled) {
	color: var(--ngfp-green-700);
	text-decoration: underline;
}

.ngfp-link-muted:disabled {
	color: var(--ngfp-gray-400);
	cursor: default;
}

.ngfp-btn-primary {
	position: relative;
	border: none;
	background: linear-gradient(180deg, var(--ngfp-green-600) 0%, var(--ngfp-green-700) 100%);
	color: var(--ngfp-white);
	font-size: 16px;
	font-weight: 700;
	padding: 16px;
	border-radius: var(--ngfp-radius-lg);
	box-shadow: var(--ngfp-shadow-btn);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ngfp-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(14, 124, 74, 0.34);
}

.ngfp-btn-primary:active {
	transform: translateY(0);
}

.ngfp-btn-primary:disabled {
	opacity: 0.85;
	cursor: default;
	transform: none;
}

.ngfp-btn-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: var(--ngfp-white);
	margin-left: 10px;
	display: none;
	animation: ngfp-spin 0.7s linear infinite;
}

.ngfp-btn-primary.is-loading .ngfp-btn-spinner {
	display: inline-block;
}

.ngfp-btn-primary.is-loading .ngfp-btn-text {
	opacity: 0.9;
}

@keyframes ngfp-spin {
	to {
		transform: rotate(360deg);
	}
}

.ngfp-btn-link {
	margin-top: 6px;
}

/* ==========================================================================
   Info card
   ========================================================================== */

.ngfp-info-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: var(--ngfp-green-50);
	border: 1px solid var(--ngfp-green-100);
	border-radius: var(--ngfp-radius-md);
	padding: 14px 16px;
	margin-top: 24px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ngfp-green-900);
}

.ngfp-info-card--muted {
	background: var(--ngfp-gray-100);
	border-color: var(--ngfp-gray-200);
	color: var(--ngfp-gray-600);
}

.ngfp-info-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--ngfp-green-600);
}

.ngfp-info-card--muted .ngfp-info-icon {
	color: var(--ngfp-gray-400);
}

.ngfp-info-icon svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Success step
   ========================================================================== */

.ngfp-step--success {
	text-align: center;
	padding-top: 12px;
}

.ngfp-success-icon {
	position: relative;
	width: 96px;
	height: 96px;
	margin: 8px auto 24px;
}

.ngfp-success-icon svg {
	width: 100%;
	height: 100%;
	animation: ngfp-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ngfp-pop-in {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.ngfp-confetti {
	position: absolute;
	inset: -22px;
	pointer-events: none;
	background-image:
		radial-gradient(circle, #f2d51d 3px, transparent 3.5px),
		radial-gradient(circle, #17b26a 3px, transparent 3.5px),
		radial-gradient(circle, #128a53 3px, transparent 3.5px),
		radial-gradient(circle, #d6342c 3px, transparent 3.5px),
		radial-gradient(circle, #f2d51d 3px, transparent 3.5px),
		radial-gradient(circle, #17b26a 3px, transparent 3.5px);
	background-repeat: no-repeat;
	background-position:
		4% 12%, 92% 8%, 10% 88%, 90% 82%, 50% 2%, 50% 96%;
	opacity: 0;
	animation: ngfp-confetti-in 0.6s ease 0.15s forwards;
}

@keyframes ngfp-confetti-in {
	from {
		opacity: 0;
		transform: scale(0.7);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.ngfp-redirect-note {
	margin: 16px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--ngfp-gray-600);
}

/* ==========================================================================
   Toast (used for lightweight, non-blocking notices)
   ========================================================================== */

.ngfp-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%) translateY(12px);
	background: var(--ngfp-green-900);
	color: var(--ngfp-white);
	font-size: 13.5px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 999px;
	box-shadow: var(--ngfp-shadow-md);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 999;
	pointer-events: none;
}

.ngfp-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.ngfp-toast[hidden] {
	display: none;
}

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 360px) {
	.ngfp-content {
		padding: 24px 18px 32px;
	}

	.ngfp-title {
		font-size: 21px;
	}

	.ngfp-otp-box {
		font-size: 18px;
	}
}
