/* WingSlide Student Portal Login — screenshot reference (WordPress + standalone) */

body.cas-auth-light,
body.cas-auth-light.cas-lms-page {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
	background-color: #f4f7f9 !important;
	-webkit-font-smoothing: antialiased;
}

body.cas-auth-light .cas-lms-main {
	padding: 0;
	margin: 0;
	max-width: none;
}

body.cas-auth-light a {
	text-decoration: none;
}

.ws-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #f4f7f9;
}

.ws-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 88px;
	height: auto;
	padding: 14px 40px;
	background-color: #ffffff;
	border-bottom: 1px solid #e8edf2;
	flex-shrink: 0;
}

.ws-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 4px 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ws-header__logo:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.ws-header__logo img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
	min-width: 160px;
	object-fit: contain;
	object-position: left center;
	filter: drop-shadow(0 2px 6px rgba(0, 160, 227, 0.08));
}

.ws-header__nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-right: auto;
	margin-left: 32px;
}

.ws-header__nav-link {
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.4;
}

.ws-header__nav-link--active {
	color: #475569;
	font-weight: 600;
}

.ws-header__admin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	height: 38px;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	background-color: #ffffff;
	border: 1px solid #d8dee6;
	border-radius: 19px;
	line-height: 1;
	flex-shrink: 0;
}

.ws-header__admin-btn--active {
	color: #475569;
	border-color: #94a3b8;
}

.ws-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px 56px;
}

.ws-login-card {
	width: 100%;
	max-width: 440px;
	background-color: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.07);
	padding: 40px 40px 32px;
}

.ws-login-card__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #1e293b;
	text-align: center;
	margin: 0 0 8px;
}

.ws-login-card__subtitle {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: #00a0e3;
	text-align: center;
	margin: 0 0 28px;
}

.ws-alert {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 18px;
	text-align: center;
}

.ws-alert--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.ws-alert--success {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.ws-login-form {
	width: 100%;
}

.ws-field {
	margin-bottom: 18px;
}

.ws-field__label {
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #475569;
	margin-bottom: 8px;
}

.ws-field__input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #1e293b;
	background-color: #ffffff;
	border: 1.5px solid #7dd3fc;
	border-radius: 24px;
	outline: none;
}

.ws-field__input::placeholder {
	color: #94a3b8;
}

.ws-field__input:focus {
	border-color: #00a0e3;
}

.ws-field__input--error {
	border-color: #f87171;
}

/* Register page — email field fill (screenshot) */
.ws-field__input--email {
	background-color: #f0f4f8;
	border-color: transparent;
}

.ws-field__input--email:focus {
	background-color: #ffffff;
	border-color: #00a0e3;
}

.ws-register-form .ws-field--last {
	margin-bottom: 22px;
}

.ws-register-form .ws-submit-btn {
	margin-top: 0;
}

.ws-login-card__signin-link {
	margin: 22px 0 0;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.ws-login-card__signin-link a {
	color: #00a0e3;
}

.ws-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 22px;
	font-size: 13px;
	font-weight: 400;
	color: #64748b;
	cursor: pointer;
}

.ws-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #00a0e3;
	cursor: pointer;
	flex-shrink: 0;
}

.ws-submit-btn {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 24px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: #ffffff;
	background-color: #00a0e3;
	border: none;
	border-radius: 24px;
	cursor: pointer;
}

.ws-submit-btn:active {
	background-color: #0090cc;
}

.ws-login-card__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
	font-size: 13px;
}

.ws-login-card__links a {
	color: #00a0e3;
}

.ws-login-card__dot {
	color: #94a3b8;
	font-size: 13px;
}

.ws-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 22px 40px;
	background-color: #eef2f6;
	border-top: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.ws-footer__brand {
	display: flex;
	align-items: center;
}

.ws-footer__logo {
	display: flex;
	align-items: center;
}

.ws-footer__logo img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
	min-width: 160px;
	object-fit: contain;
	object-position: left center;
	filter: drop-shadow(0 2px 6px rgba(0, 160, 227, 0.1));
}

.ws-footer__nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 22px;
}

.ws-footer__nav a {
	font-size: 13px;
	color: #64748b;
}

.ws-footer__copy {
	font-size: 12px;
	color: #94a3b8;
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.ws-header { padding: 0 24px; }
	.ws-header__nav { margin-left: 16px; gap: 18px; }
	.ws-footer { padding: 20px 24px; }
}

@media (max-width: 720px) {
	.ws-header {
		min-height: 72px;
		padding: 12px 16px;
		flex-wrap: wrap;
	}

	.ws-header__logo img {
		height: 44px;
		max-width: 200px;
		min-width: 140px;
	}
	.ws-header__nav {
		order: 3;
		width: 100%;
		margin: 8px 0 0;
		margin-left: 0;
		gap: 16px;
	}
	.ws-header__admin-btn {
		height: 34px;
		min-width: 76px;
		padding: 0 16px;
		font-size: 13px;
	}
	.ws-main {
		padding: 32px 16px 40px;
		align-items: flex-start;
	}
	.ws-login-card {
		padding: 32px 24px 28px;
		border-radius: 14px;
	}
	.ws-login-card__title { font-size: 24px; }
	.ws-footer {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px 16px;
	}
	.ws-footer__copy { white-space: normal; }
}

/* —— Landing page (matches designsure.co.nz/home) —— */

.ws-page--landing .ws-main {
	display: block;
	align-items: stretch;
	justify-content: flex-start;
	padding: 0;
	width: 100%;
}

.cas-hero {
	padding: 72px 24px 48px;
	text-align: center;
	max-width: 920px;
	margin: 0 auto;
}

.cas-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin: 0 0 20px;
	color: #1e293b;
}

.cas-hero__title span {
	color: #00a0e3;
}

.cas-hero__sub {
	font-size: 17px;
	font-weight: 400;
	color: #64748b;
	line-height: 1.65;
	margin: 0 auto 32px;
	max-width: 640px;
}

.cas-hero__cta {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.cas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #ffffff;
	background-color: #00a0e3;
	border: none;
	border-radius: 24px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.cas-btn:hover {
	background-color: #0090cc;
	color: #ffffff;
	transform: translateY(-1px);
}

.cas-btn--outline {
	background-color: #ffffff;
	color: #1e293b;
	border: 1px solid #d8dee6;
}

.cas-btn--outline:hover {
	background-color: #f8fafc;
	color: #00a0e3;
	border-color: #00a0e3;
}

.cas-btn-lg {
	padding: 14px 32px;
	font-size: 16px;
}

.cas-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding: 0 40px 56px;
	max-width: 1200px;
	margin: 0 auto;
}

.cas-feature-tile {
	padding: 28px 24px;
	background: linear-gradient(145deg, #00a0e3 0%, #0088c7 100%);
	border: none;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 160, 227, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cas-feature-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0, 160, 227, 0.28);
}

.cas-feature-tile__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 16px;
}

.cas-feature-tile h3 {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
}

.cas-feature-tile p {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.55;
}

.cas-landing-cta {
	text-align: center;
	padding: 0 24px 72px;
	max-width: 720px;
	margin: 0 auto;
}

.cas-landing-cta__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: #1e293b;
	margin: 0 0 12px;
}

.cas-landing-cta__sub {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 24px;
	line-height: 1.55;
}

@media (max-width: 960px) {
	.cas-feature-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 24px 48px;
	}
}

@media (max-width: 640px) {
	.cas-hero {
		padding: 48px 20px 36px;
	}

	.cas-hero__title {
		font-size: 28px;
	}

	.cas-feature-grid {
		grid-template-columns: 1fr;
		padding: 0 16px 40px;
	}

	.cas-landing-cta {
		padding: 0 16px 56px;
	}

	.cas-landing-cta__title {
		font-size: 24px;
	}
}
