/*
 * SiliconexAI Academy Auth. Brand colours are variables, so change them in one place.
 */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
	--sxa-navy: #071B4D;
	--sxa-teal: #00A896;
	--sxa-teal-dark: #008C7C;
	--sxa-teal-bright: #00C2B2;
	--sxa-soft: #F2F7F6;
	--sxa-card: #FFFFFF;
	--sxa-text: #071B4D;
	--sxa-muted: #5a6478;
	--sxa-border: #d3e3e0;
	--sxa-error: #b42318;
	--sxa-success: #067647;
	--sxa-radius: 18px;
	--sxa-shadow: 0 20px 50px rgba(7, 27, 77, 0.12);
}

/* The plugin template owns the whole page. */
body.sxa-fullscreen {
	margin: 0;
	padding: 0;
	background: var(--sxa-soft);
	overflow-x: hidden;
}

/* Split screen */
.sxa {
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--sxa-text);
	background: var(--sxa-soft);
	box-sizing: border-box;
}

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

.sxa-banner {
	position: relative;
	display: flex;
	align-items: center;
	padding: clamp(32px, 6vw, 88px);
	color: #FFFFFF;
	background-color: var(--sxa-navy);
	background-image: linear-gradient(135deg, rgba(7, 27, 77, 0.92), rgba(0, 168, 150, 0.55));
	background-size: cover;
	background-position: center;
}

.sxa-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(7, 27, 77, 0.85), rgba(7, 27, 77, 0.35));
	pointer-events: none;
}

.sxa-banner__inner {
	position: relative;
	max-width: 560px;
}

/* The logo has navy text, so it sits on a white badge to stay readable on the navy banner. */
.sxa-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: min(320px, 100%);
	max-height: 72px;
	object-fit: contain;
	box-sizing: content-box;
	padding: 14px 20px;
	margin-bottom: 36px;
	background: #FFFFFF;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.sxa-headline {
	margin: 0 0 16px;
	font-family: inherit;
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: #FFFFFF;
}

.sxa-tagline {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.6;
	opacity: 0.92;
}

.sxa-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 5vw, 64px);
}

.sxa-card {
	width: 100%;
	max-width: 440px;
	background: var(--sxa-card);
	border: 1px solid var(--sxa-border);
	border-radius: var(--sxa-radius);
	box-shadow: var(--sxa-shadow);
	padding: 28px 28px 24px;
}

/* Tabs */
.sxa-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 4px;
	background: var(--sxa-soft);
	border-radius: 12px;
	margin-bottom: 22px;
}

.sxa-tab {
	text-align: center;
	padding: 10px 12px;
	border-radius: 9px;
	color: var(--sxa-muted);
	font-weight: 600;
	text-decoration: none;
}

.sxa-tab.is-active {
	background: var(--sxa-card);
	color: var(--sxa-navy);
	box-shadow: 0 2px 8px rgba(7, 27, 77, 0.08);
}

.sxa-title {
	margin: 0 0 4px;
	font-family: inherit;
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--sxa-navy);
}

.sxa-sub {
	margin: 0 0 18px;
	color: var(--sxa-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Forms */
.sxa-form {
	display: grid;
	gap: 14px;
}

.sxa-form label > span {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sxa-navy);
}

.sxa input[type="text"],
.sxa input[type="email"],
.sxa input[type="tel"],
.sxa input[type="password"],
.sxa select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--sxa-border);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--sxa-text);
	font: inherit;
	font-size: 0.95rem;
}

.sxa input:focus,
.sxa select:focus,
.sxa button:focus-visible,
.sxa a:focus-visible {
	outline: 3px solid rgba(0, 168, 150, 0.35);
	outline-offset: 2px;
}

.sxa-pw {
	position: relative;
	display: block;
}

.sxa-pw input {
	padding-right: 72px;
}

.sxa-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: var(--sxa-teal-dark);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 6px 8px;
}

.sxa-form label > .sxa-phone {
	display: flex;
	gap: 8px;
	margin: 0;
	font-weight: 400;
}

.sxa-prefix {
	display: inline-flex;
	align-items: center;
	min-width: 62px;
	justify-content: center;
	border: 1px solid var(--sxa-border);
	border-radius: 10px;
	background: var(--sxa-soft);
	font-weight: 600;
	color: var(--sxa-navy);
}

.sxa-phone input {
	flex: 1;
	min-width: 0;
}

.sxa-check {
	display: flex !important;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--sxa-muted);
}

.sxa-check span {
	margin: 0 !important;
}

.sxa-captcha {
	margin: 4px 0;
}

.sxa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 10px;
	background: var(--sxa-teal);
	color: #FFFFFF;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.sxa-btn:hover:not(:disabled) {
	background: var(--sxa-teal-dark);
}

.sxa-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sxa-btn--ghost {
	background: transparent;
	color: var(--sxa-teal-dark);
	border: 1px solid var(--sxa-teal);
	width: auto;
	padding: 0 16px;
}

.sxa-btn--ghost:hover:not(:disabled) {
	background: var(--sxa-soft);
}

.sxa-link {
	justify-self: center;
	color: var(--sxa-teal-dark);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.sxa-link-btn {
	border: 0;
	background: transparent;
	color: var(--sxa-muted);
	font: inherit;
	font-size: 0.9rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.sxa-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
}

.sxa-row form {
	margin: 0;
}

/* Password strength */
.sxa-meter {
	height: 6px;
	border-radius: 999px;
	background: var(--sxa-soft);
	overflow: hidden;
	margin-top: -4px;
}

.sxa-meter span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--sxa-teal-bright);
	transition: width 0.25s ease, background 0.25s ease;
}

.sxa-meter-label {
	margin: -6px 0 0;
	font-size: 0.82rem;
	color: var(--sxa-muted);
}

/* Notices */
.sxa-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.45;
}

.sxa-notice.is-error {
	background: #FEF3F2;
	color: var(--sxa-error);
	border: 1px solid #FECDCA;
}

.sxa-notice.is-success {
	background: #ECFDF3;
	color: var(--sxa-success);
	border: 1px solid #ABEFC6;
}

.sxa-note {
	padding: 16px;
	text-align: center;
}

/* Phones: banner on top, form below */
@media (max-width: 767px) {
	.sxa {
		grid-template-columns: minmax(0, 1fr);
		min-height: auto;
	}

	.sxa-banner {
		min-height: 34vh;
		padding: 36px 20px;
	}

	.sxa-logo {
		max-height: 48px;
		max-width: min(240px, 100%);
		padding: 10px 14px;
		margin-bottom: 20px;
	}

	.sxa-panel {
		padding: 20px 16px 32px;
	}

	.sxa-card {
		padding: 22px 18px 20px;
	}
}
