/* ==========================================================================
   changepwd.css  -  Password recovery / reset screens
   Everything is scoped under .chp-page so it never leaks into the rest of the
   portal, and every selector is (class + class) so it wins over the global
   rules in placements2.css (label/input floats, div padding, mobile h2/input
   widths, etc.).
   Change the colours in ONE place: the variables below.
   ========================================================================== */

.chp-page {
	--chp-primary:      #1c2b4a;   /* buttons, titles            */
	--chp-primary-dark: #131f38;   /* button hover               */
	--chp-focus:        #0f766e;   /* focus ring (portal teal)   */
	--chp-text:         #101828;
	--chp-muted:        #667085;
	--chp-border:       #d0d5dd;
	--chp-surface:      #ffffff;
	--chp-soft:         #eef2f9;

	display: flex;
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 70vh;
	margin: 0 auto;
	padding: 48px 16px 32px;
	font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--chp-text);
}

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

/* ---------- Card ---------- */
.chp-page .chp-card {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 40px 32px 28px;
	background: var(--chp-surface);
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .04);
	overflow: hidden;
	text-align: center;
}
.chp-page .chp-card::before {            /* slim accent bar on top */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--chp-primary), var(--chp-focus));
}

/* ---------- Icon badge ---------- */
.chp-page .chp-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0 auto 18px;
	padding: 0;
	border-radius: 50%;
	background: var(--chp-soft);
	color: var(--chp-primary);
}
.chp-page .chp-badge svg { width: 28px; height: 28px; display: block; }
.chp-page .chp-badge.is-success { background: #e7f6ee; color: #1a7f4b; }

/* ---------- Heading ---------- */
.chp-page .chp-card .chp-title {
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	background: none;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	text-align: center;
	color: var(--chp-primary);
}
.chp-page .chp-card .chp-sub {
	width: auto;
	margin: 0 0 24px;
	padding: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--chp-muted);
	text-align: center;
}

/* ---------- Form fields ---------- */
.chp-page .chp-form { margin: 0; padding: 0; float: none; width: 100%; }

.chp-page .chp-field {
	margin: 0 0 18px;
	padding: 0;
	text-align: left;
}
.chp-page .chp-card label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 6px;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	color: #344054;
	text-align: left;
}
.chp-page .chp-card input[type="text"],
.chp-page .chp-card input[type="password"],
.chp-page .chp-card input[type="email"] {
	display: block;
	float: none;
	width: 100%;
	max-width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--chp-text);
	text-align: left;
	background: #fff;
	border: 1px solid var(--chp-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.chp-page .chp-card input::placeholder { color: #98a2b3; }
.chp-page .chp-card input:hover { border-color: #98a2b3; }
.chp-page .chp-card input:focus {
	border-color: var(--chp-focus);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, .16);
}

/* password field with show/hide eye */
.chp-page .chp-pw { position: relative; padding: 0; margin: 0; }
.chp-page .chp-card .chp-pw input { padding-right: 46px; }
.chp-page .chp-eye {
	position: absolute;
	top: 50%;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	float: none;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #667085;
	cursor: pointer;
}
.chp-page .chp-eye:hover { background: #f2f4f7; color: var(--chp-primary); }
.chp-page .chp-eye:focus-visible { outline: 2px solid var(--chp-focus); }
.chp-page .chp-eye svg { width: 19px; height: 19px; display: block; }
.chp-page .chp-eye .off { display: none; }
.chp-page .chp-eye.is-on .on { display: none; }
.chp-page .chp-eye.is-on .off { display: block; }

/* strength meter + hints */
.chp-page .chp-meter { display: flex; margin: 10px 0 0; padding: 0; }
.chp-page .chp-meter i {
	display: block;
	flex: 1 1 0;
	height: 4px;
	margin-right: 4px;
	border-radius: 4px;
	background: #e4e7ec;
	transition: background .2s ease;
}
.chp-page .chp-meter i:last-child { margin-right: 0; }
.chp-page .chp-meter[data-level="1"] i:nth-child(-n+1) { background: #e5484d; }
.chp-page .chp-meter[data-level="2"] i:nth-child(-n+2) { background: #f59e0b; }
.chp-page .chp-meter[data-level="3"] i:nth-child(-n+3) { background: #65a30d; }
.chp-page .chp-meter[data-level="4"] i:nth-child(-n+4) { background: #16a34a; }

.chp-page .chp-hint {
	min-height: 18px;
	margin: 6px 0 0;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--chp-muted);
	text-align: left;
}
.chp-page .chp-hint.ok  { color: #067647; }
.chp-page .chp-hint.bad { color: #b42318; }

/* ---------- Buttons ---------- */
.chp-page .chp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	float: none;
	width: 100%;
	height: 46px;
	margin: 8px 0 0;
	padding: 0 18px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	text-align: center;
	background: var(--chp-primary);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.chp-page .chp-btn:hover  { background: var(--chp-primary-dark); color: #fff; }
.chp-page .chp-btn:active { transform: translateY(1px); }
.chp-page .chp-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(15, 118, 110, .3);
}

/* ---------- Alerts ---------- */
.chp-page .chp-alert {
	display: flex;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 12px 14px;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: left;
	border: 1px solid;
	border-radius: 10px;
}
.chp-page .chp-alert svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 10px 0 0;
}
.chp-page .chp-alert span { display: block; flex: 1 1 auto; padding: 0; }
.chp-page .chp-alert.is-error   { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.chp-page .chp-alert.is-warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.chp-page .chp-alert.is-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.chp-page .chp-alert.is-info    { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }

/* ---------- Footer links ---------- */
.chp-page .chp-foot {
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #eaecf0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--chp-muted);
	text-align: center;
}
.chp-page .chp-foot a {
	font-weight: 600;
	color: var(--chp-primary);
	text-decoration: none;
}
.chp-page .chp-foot a:hover { color: var(--chp-focus); text-decoration: underline; }

/* ---------- Small screens ---------- */
@media only screen and (max-width: 520px) {
	.chp-page { padding: 20px 12px; min-height: 0; }
	.chp-page .chp-card { padding: 30px 20px 22px; border-radius: 14px; box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
	.chp-page .chp-card .chp-title { font-size: 20px; }
	/* 16px stops iOS from zooming into the field on focus */
	.chp-page .chp-card input[type="text"],
	.chp-page .chp-card input[type="password"],
	.chp-page .chp-card input[type="email"] { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.chp-page * { transition: none !important; }
}