/**
 * Branded login screen styles ([pathway_login] and the logged-out
 * view of [pathway_dashboard]). Scoped under .pathway-login.
 *
 * Layout mirrors the brand mockup: full-bleed photo hero with a
 * large organic curve on its left edge, and a promo banner with
 * an oversized student photo and hand-drawn decorations.
 */

.pathway-login {
	--pd-navy: #003054;
	--pd-teal: #6c9090;
	--pd-teal-dark: #3c5454;
	--pd-teal-light: #84b4b4;
	--pd-mint: #a8d8cc;
	--pd-mint-wash: #f4f9f8;
	--pd-white: #ffffff;
	--pd-border: #e6efec;
	--pd-danger: #b4533c;
	--pd-accent: #1aaeae;
	--pd-accent-hover: #148f8f;
	--pd-yellow: #f4c542;
	--pd-radius: 16px;
	--pd-font-heading: "Outfit", sans-serif;
	--pd-font-body: "Inter", sans-serif;

	font-family: var(--pd-font-body);
	color: var(--pd-teal-dark);
	-webkit-font-smoothing: antialiased;

	/* Everything sits inside one big white card, like the mockup. */
	background: var(--pd-white);
	border-radius: 28px;
	padding-bottom: 44px;
	overflow: hidden;
}

.pathway-login *,
.pathway-login *::before,
.pathway-login *::after {
	box-sizing: border-box;
}

.pathway-login a {
	text-decoration: none;
}

.pathway-login button {
	font-family: inherit;
	cursor: pointer;
}

/* ---- Top: brand + hero (full-bleed, curved boundary) ---- */

.pathway-login__top {
	display: grid;
	grid-template-columns: minmax(300px, 40%) 1fr;
	align-items: stretch;
}

/* ---- Brand panel ---- */

.pathway-login__brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 48px 48px clamp(28px, 4.5vw, 72px);
}

.pathway-login__logo {
	margin-bottom: 64px;
}

.pathway-login__logo img {
	max-height: 90px;
	width: auto;
	display: block;
}

.pathway-login__logo-text {
	font-family: var(--pd-font-heading);
	font-weight: 700;
	font-size: 30px;
	color: var(--pd-navy);
}

.pathway-login__tagline {
	font-family: var(--pd-font-heading);
	font-weight: 700;
	font-size: clamp(36px, 4.2vw, 58px);
	line-height: 1.16;
	color: var(--pd-navy);
	margin: 0 0 26px;
}

.pathway-login__tagline span {
	display: block;
}

.pathway-login__tagline-bar {
	display: block;
	width: 92px;
	height: 6px;
	border-radius: 3px;
	background: var(--pd-accent);
}

/* ---- Hero (photo fills the right side, giant-circle curve) ---- */

.pathway-login__hero-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

/* Ash shade hugging the curved edge: a radial gradient with the
 * same geometry as the clip circle (54.5% ellipse at 54.5%/50%),
 * shading just OUTSIDE the boundary onto the white panel. Masked
 * so it never draws over the photo's rectangular top-right part. */
.pathway-login__hero-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	/* MUST mirror the clipPath circle in login.php:
	 * ellipse <r> <r> at <cx> <cy>  (circle cx=0.80 cy=0.45 r=0.80). */
	background: radial-gradient(
		ellipse 80% 80% at 80% 45%,
		rgba(34, 50, 58, 0.20) 98%,
		rgba(17, 25, 29, 0.16) 100%,
		rgba(45, 65, 75, 0.09) 101.5%,
		rgba(45, 65, 75, 0) 104%
	);
	-webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
	mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
}

.pathway-login__hero {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Tall enough that the promo banner overlaps its lower edge,
	 * with the banner's bottom half dropping onto the white card. */
	min-height: 760px;
	padding: 48px 40px 200px;
	background-color: var(--pd-navy);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.pathway-login__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, rgba(0, 48, 84, 0.28), rgba(0, 48, 84, 0.55));
}

.pathway-login__panel {
	position: relative;
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.pathway-login__panel-title {
	font-family: var(--pd-font-heading);
	font-size: 32px;
	font-weight: 700;
	color: var(--pd-white);
	margin: 0 0 8px;
	text-shadow: 0 1px 12px rgba(0, 48, 84, 0.35);
}

.pathway-login__panel-sub {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 26px;
	text-shadow: 0 1px 8px rgba(0, 48, 84, 0.35);
}

/* ---- Notices ---- */

.pathway-login__notice {
	font-size: 13.5px;
	font-weight: 500;
	border-radius: 12px;
	padding: 10px 16px;
	margin: 0 0 16px;
}

.pathway-login__notice--error {
	background: rgba(255, 235, 230, 0.96);
	color: var(--pd-danger);
	border: 1px solid rgba(180, 83, 60, 0.35);
}

.pathway-login__notice--info {
	background: rgba(244, 249, 248, 0.96);
	color: var(--pd-teal-dark);
	border: 1px solid var(--pd-mint);
}

/* ---- Form fields ---- */

.pathway-login__field {
	position: relative;
	display: block;
	margin-bottom: 14px;
}

.pathway-login__field-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
	color: var(--pd-teal);
	display: flex;
}

.pathway-login__field-icon svg {
	width: 18px;
	height: 18px;
}

.pathway-login__field input {
	width: 100%;
	padding: 15px 48px;
	border: none;
	border-radius: 10px;
	background: var(--pd-white);
	font-family: var(--pd-font-body);
	font-size: 14.5px;
	color: var(--pd-navy);
	outline: none;
	box-shadow: 0 2px 10px rgba(0, 24, 42, 0.14);
	transition: box-shadow 0.15s ease;
}

.pathway-login__field input:focus {
	box-shadow: 0 0 0 3px rgba(26, 174, 174, 0.45);
}

.pathway-login__field input::placeholder {
	color: var(--pd-teal);
}

.pathway-login__eye {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--pd-teal);
	transition: color 0.15s ease;
}

.pathway-login__eye:hover,
.pathway-login__eye.is-visible {
	color: var(--pd-navy);
}

.pathway-login__eye svg {
	width: 19px;
	height: 19px;
}

.pathway-login__forgot {
	text-align: right;
	margin: 0 0 20px;
}

.pathway-login__forgot a {
	font-size: 13.5px;
	font-weight: 500;
	color: #8fe0e0;
	transition: color 0.15s ease;
}

.pathway-login__forgot a:hover {
	color: var(--pd-white);
}

/* ---- Submit ---- */

.pathway-login__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px 24px;
	border: none;
	border-radius: 10px;
	background: var(--pd-accent);
	color: var(--pd-white);
	font-family: var(--pd-font-body);
	font-size: 15.5px;
	font-weight: 600;
	transition: background 0.15s ease, transform 0.15s ease;
}

.pathway-login__submit:hover,
.pathway-login__submit:focus {
	background: var(--pd-accent-hover);
	color: var(--pd-white);
	transform: translateY(-1px);
}

.pathway-login__assist {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.92);
	margin: 20px 0 0;
	text-shadow: 0 1px 8px rgba(0, 48, 84, 0.35);
}

.pathway-login__assist a {
	color: #8fe0e0;
	font-weight: 600;
}

.pathway-login__assist a:hover {
	color: var(--pd-white);
}

/* ---- Promo banner ---- */

.pathway-login__promo {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 30px;
	min-height: 230px;
	/* Overlaps the hero photo's lower edge; the bottom half of the
	 * banner drops onto the white card below. */
	margin: -150px 4% 0;
	padding: 0 46px;
	background: #e9f5f0;
	border-radius: 22px;
	/* Soft ash shade beneath the banner, like the mockup. */
	box-shadow: 0 18px 44px rgba(60, 80, 90, 0.16);
	overflow: hidden;
}

/* Oversized student photo rising out of a mint circle. */

.pathway-login__promo-photo {
	position: relative;
	width: 235px;
	align-self: stretch;
	flex-shrink: 0;
}

.pathway-login__promo-circle {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 195px;
	height: 195px;
	border-radius: 50%;
	background: #bfe3d8;
}

.pathway-login__promo-photo img {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	height: 92%;
	width: auto;
	max-width: none;
}

.pathway-login__promo-body {
	flex: 1;
	min-width: 240px;
	padding: 36px 0;
}

.pathway-login__promo-title {
	font-family: var(--pd-font-heading);
	font-size: clamp(28px, 3.1vw, 40px);
	font-weight: 700;
	color: var(--pd-navy);
	margin: 0 0 8px;
}

.pathway-login__promo-sub {
	font-size: clamp(17px, 1.9vw, 23px);
	color: var(--pd-teal-dark);
	margin: 0;
}

.pathway-login__underline {
	position: relative;
	display: inline-block;
	font-weight: 600;
	color: var(--pd-navy);
}

.pathway-login__underline-stroke {
	position: absolute;
	left: 0;
	bottom: -11px;
	width: 100%;
	height: 13px;
	color: var(--pd-yellow);
}

.pathway-login__arrow {
	width: clamp(70px, 8.5vw, 112px);
	height: auto;
	flex-shrink: 0;
	color: var(--pd-accent);
	margin-top: 26px;
}

/* ---- Learn More button with tick marks + dots ---- */

.pathway-login__promo-action {
	position: relative;
	flex-shrink: 0;
	margin-right: 14px;
}

.pathway-login__learn-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 17px 34px;
	border-radius: 12px;
	background: var(--pd-accent);
	color: var(--pd-white);
	font-size: 16px;
	font-weight: 600;
	transition: background 0.15s ease, gap 0.2s ease;
}

.pathway-login__learn-more:hover,
.pathway-login__learn-more:focus {
	background: var(--pd-accent-hover);
	color: var(--pd-white);
	gap: 14px;
}

.pathway-login__learn-more svg {
	width: 19px;
	height: 19px;
}

.pathway-login__ticks {
	position: absolute;
	top: -34px;
	right: -6px;
	width: 30px;
	height: 30px;
	color: var(--pd-yellow);
}

.pathway-login__dots {
	position: absolute;
	right: -30px;
	bottom: -18px;
	color: var(--pd-teal-light);
}

.pathway-login__dots svg {
	width: 38px;
	height: 38px;
}

/* ---- Sparkles (4-point stars) ---- */

.pathway-login__sparkle {
	color: var(--pd-navy);
	flex-shrink: 0;
	display: inline-flex;
}

.pathway-login__sparkle svg {
	width: 22px;
	height: 22px;
}

.pathway-login__sparkle--photo-1 {
	position: absolute;
	left: -18px;
	bottom: 96px;
	color: var(--pd-navy);
}

.pathway-login__sparkle--photo-1 svg {
	width: 18px;
	height: 18px;
}

.pathway-login__sparkle--photo-2 {
	position: absolute;
	left: 2px;
	bottom: 52px;
	color: var(--pd-teal-light);
}

.pathway-login__sparkle--photo-2 svg {
	width: 12px;
	height: 12px;
}

.pathway-login__sparkle--mid {
	margin-top: -20px;
}

.pathway-login__sparkle--mid svg {
	width: 24px;
	height: 24px;
}

/* ---- Tablet & mobile ---- */

@media (max-width: 1024px) {
	.pathway-login__top {
		grid-template-columns: 1fr;
	}

	.pathway-login__brand {
		padding: 32px 24px;
		text-align: center;
		align-items: center;
	}

	.pathway-login__logo {
		margin-bottom: 24px;
	}

	.pathway-login__hero {
		/* The stacked layout drops the curve; !important beats the inline clip-path. */
		clip-path: none !important;
		-webkit-clip-path: none !important;
		border-radius: 36px;
		min-height: 560px;
		padding: 48px 32px;
	}

	.pathway-login__hero-wrap::before {
		display: none;
	}

	.pathway-login__arrow,
	.pathway-login__sparkle--mid {
		display: none;
	}

	.pathway-login__promo {
		margin: 24px 16px 0;
		padding: 0 34px;
	}
}

@media (max-width: 767px) {
	.pathway-login__hero {
		padding: 36px 18px;
		min-height: 520px;
		border-radius: 28px;
	}

	.pathway-login__tagline {
		font-size: 34px;
	}

	.pathway-login__promo {
		flex-direction: column;
		text-align: center;
		gap: 10px;
		padding: 30px 24px 26px;
	}

	.pathway-login__promo-photo {
		align-self: center;
		width: 180px;
		height: 170px;
	}

	.pathway-login__promo-circle {
		bottom: -30px;
		width: 150px;
		height: 150px;
	}

	.pathway-login__promo-photo img {
		height: 100%;
	}

	.pathway-login__promo-body {
		padding: 6px 0 0;
	}

	.pathway-login__promo-action {
		width: 100%;
		margin-right: 0;
	}

	.pathway-login__learn-more {
		width: 100%;
		justify-content: center;
	}

	.pathway-login__ticks,
	.pathway-login__dots {
		display: none;
	}
}
