/**
 * Rising Stars – User Registration auth pages
 * Login / registration / lost-password / reset-password
 * Matches TRN page tokens (dark navy surfaces, sparing gold CTAs)
 */

body.rs-auth-page,
body.user-registration-page.page-id-1569,
body.user-registration-page.page-id-1570,
body.user-registration-page.page-id-1572,
body.user-registration-page.page-id-1573 {
	--rs-bg: #0e1424;
	--rs-surface: #141c2e;
	--rs-surface-2: #0b101c;
	--rs-border: rgba(212, 175, 55, 0.14);
	--rs-text: #e8edf5;
	--rs-muted: #8b95a8;
	--rs-accent: #d4af37;
	--rs-accent-hover: #e4c45a;
	--rs-danger: #e85d5d;
	--rs-radius: 8px;
	--rs-link: #d4af37;
	--rs-auth-card-max: 460px;
}

body.page-id-1569.rs-auth-page,
body.page-id-1569.user-registration-page {
	--rs-auth-card-max: 560px;
}

/* ---------- Layout: full-width centered column, hide sidebar ---------- */
body.rs-auth-page .page-heading,
body.user-registration-page.page-id-1569 .page-heading,
body.user-registration-page.page-id-1570 .page-heading,
body.user-registration-page.page-id-1572 .page-heading,
body.user-registration-page.page-id-1573 .page-heading {
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.rs-auth-page #secondary,
body.user-registration-page.page-id-1569 #secondary,
body.user-registration-page.page-id-1570 #secondary,
body.user-registration-page.page-id-1572 #secondary,
body.user-registration-page.page-id-1573 #secondary {
	display: none !important;
}

body.rs-auth-page #primary.content-area,
body.user-registration-page.page-id-1569 #primary.content-area,
body.user-registration-page.page-id-1570 #primary.content-area,
body.user-registration-page.page-id-1572 #primary.content-area,
body.user-registration-page.page-id-1573 #primary.content-area {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	float: none;
	margin: 0 auto;
}

body.rs-auth-page .site-content > .container > .row,
body.user-registration-page.page-id-1569 .site-content > .container > .row,
body.user-registration-page.page-id-1570 .site-content > .container > .row,
body.user-registration-page.page-id-1572 .site-content > .container > .row,
body.user-registration-page.page-id-1573 .site-content > .container > .row {
	display: flex;
	justify-content: center;
	align-items: stretch;
	margin-left: 0;
	margin-right: 0;
}

body.rs-auth-page .site-content,
body.user-registration-page.page-id-1569 .site-content,
body.user-registration-page.page-id-1570 .site-content,
body.user-registration-page.page-id-1572 .site-content,
body.user-registration-page.page-id-1573 .site-content {
	padding-top: 2.5rem;
	padding-bottom: 3.5rem;
	min-height: calc(100vh - 320px);
	display: flex;
	align-items: center;
}

body.rs-auth-page .site-content > .container,
body.user-registration-page.page-id-1569 .site-content > .container,
body.user-registration-page.page-id-1570 .site-content > .container,
body.user-registration-page.page-id-1572 .site-content > .container,
body.user-registration-page.page-id-1573 .site-content > .container {
	width: 100%;
}

body.rs-auth-page .site-main,
body.rs-auth-page .entry-content,
body.user-registration-page.page-id-1569 .site-main,
body.user-registration-page.page-id-1569 .entry-content,
body.user-registration-page.page-id-1570 .site-main,
body.user-registration-page.page-id-1570 .entry-content,
body.user-registration-page.page-id-1572 .site-main,
body.user-registration-page.page-id-1572 .entry-content,
body.user-registration-page.page-id-1573 .site-main,
body.user-registration-page.page-id-1573 .entry-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: left;
}

body.rs-auth-page .entry-content > *,
body.user-registration-page.page-id-1569 .entry-content > *,
body.user-registration-page.page-id-1570 .entry-content > *,
body.user-registration-page.page-id-1572 .entry-content > *,
body.user-registration-page.page-id-1573 .entry-content > * {
	width: 100%;
	max-width: var(--rs-auth-card-max);
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Form card ---------- */
body.rs-auth-page .user-registration,
body.rs-auth-page .ur-frontend-form,
body.user-registration-page.page-id-1569 .user-registration,
body.user-registration-page.page-id-1569 .ur-frontend-form,
body.user-registration-page.page-id-1570 .user-registration,
body.user-registration-page.page-id-1570 .ur-frontend-form,
body.user-registration-page.page-id-1572 .user-registration,
body.user-registration-page.page-id-1572 .ur-frontend-form,
body.user-registration-page.page-id-1573 .user-registration,
body.user-registration-page.page-id-1573 .ur-frontend-form {
	width: 100%;
	max-width: var(--rs-auth-card-max);
	margin: 0 auto;
	float: none !important;
	box-sizing: border-box;
}

body.rs-auth-page .ur-frontend-form,
body.user-registration-page.page-id-1569 .ur-frontend-form,
body.user-registration-page.page-id-1570 .ur-frontend-form,
body.user-registration-page.page-id-1572 .ur-frontend-form,
body.user-registration-page.page-id-1573 .ur-frontend-form {
	padding: 1.75rem 1.5rem 1.6rem !important;
	border: 1px solid var(--rs-border) !important;
	border-radius: var(--rs-radius) !important;
	background: var(--rs-surface) !important;
	box-shadow: none;
	color: var(--rs-text);
}

body.rs-auth-page .ur-frontend-form--bordered,
body.user-registration-page.page-id-1569 .ur-frontend-form--bordered {
	border-style: solid !important;
}

body.rs-auth-page .ur-form-row,
body.user-registration-page .ur-form-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2%;
	margin: 0 0 0.35rem;
	float: none !important;
	clear: both;
}

body.rs-auth-page .ur-form-grid,
body.user-registration-page .ur-form-grid {
	float: none !important;
	box-sizing: border-box;
}

body.rs-auth-page.page-id-1570 .ur-form-grid,
body.rs-auth-page.page-id-1572 .ur-form-grid,
body.rs-auth-page.page-id-1573 .ur-form-grid,
body.page-id-1570 .ur-form-grid,
body.page-id-1572 .ur-form-grid,
body.page-id-1573 .ur-form-grid {
	width: 100% !important;
}

body.page-id-1569 .ur-form-grid[style*="width:48%"],
body.page-id-1569 .ur-form-grid.ur-grid-1[style*="48"],
body.page-id-1569 .ur-form-grid.ur-grid-2[style*="48"] {
	width: 49% !important;
	max-width: 49%;
}

body.page-id-1569 .ur-form-grid[style*="width:99%"],
body.page-id-1569 .ur-form-grid[style*="99%"] {
	width: 100% !important;
	max-width: 100%;
}

@media (max-width: 575px) {
	body.page-id-1569 .ur-form-grid[style*="width:48%"],
	body.page-id-1569 .ur-form-grid.ur-grid-1,
	body.page-id-1569 .ur-form-grid.ur-grid-2 {
		width: 100% !important;
		max-width: 100%;
	}
}

/* ---------- Typography & labels ---------- */
body.rs-auth-page .ur-frontend-form label,
body.rs-auth-page .ur-label,
body.rs-auth-page .user-registration-form__label,
body.user-registration-page.page-id-1569 .ur-frontend-form label,
body.user-registration-page.page-id-1569 .ur-label,
body.user-registration-page.page-id-1570 .ur-frontend-form label,
body.user-registration-page.page-id-1572 .ur-frontend-form label,
body.user-registration-page.page-id-1573 .ur-frontend-form label {
	color: var(--rs-text) !important;
	font-weight: 600;
	font-size: 0.86rem;
	letter-spacing: 0.02em;
	margin-bottom: 0.4rem;
}

body.rs-auth-page .ur-frontend-form .required,
body.rs-auth-page .ur-frontend-form abbr.required,
body.user-registration-page .ur-frontend-form .required,
body.user-registration-page .ur-frontend-form abbr.required {
	color: var(--rs-accent) !important;
	text-decoration: none;
	border: 0;
}

body.rs-auth-page .ur-frontend-form .description,
body.rs-auth-page .ur-lost-password-message,
body.rs-auth-page .ur-lost-password-title,
body.user-registration-page .ur-frontend-form .description,
body.user-registration-page .ur-lost-password-message,
body.user-registration-page .ur-lost-password-title {
	color: var(--rs-muted) !important;
	font-size: 0.9rem;
	line-height: 1.5;
}

body.rs-auth-page .ur-lost-password-title,
body.user-registration-page .ur-lost-password-title {
	color: var(--rs-text) !important;
	font-weight: 700;
	font-size: 1.15rem;
	margin-bottom: 0.35rem;
}

/* ---------- Inputs / selects — always dark ---------- */
body.rs-auth-page .ur-frontend-form input[type="text"],
body.rs-auth-page .ur-frontend-form input[type="email"],
body.rs-auth-page .ur-frontend-form input[type="password"],
body.rs-auth-page .ur-frontend-form input[type="number"],
body.rs-auth-page .ur-frontend-form input[type="tel"],
body.rs-auth-page .ur-frontend-form input[type="url"],
body.rs-auth-page .ur-frontend-form select,
body.rs-auth-page .ur-frontend-form textarea,
body.rs-auth-page .user-registration-Input,
body.rs-auth-page .ur-frontend-field,
body.user-registration-page.page-id-1569 .ur-frontend-form input[type="text"],
body.user-registration-page.page-id-1569 .ur-frontend-form input[type="email"],
body.user-registration-page.page-id-1569 .ur-frontend-form input[type="password"],
body.user-registration-page.page-id-1569 .ur-frontend-form input[type="number"],
body.user-registration-page.page-id-1569 .ur-frontend-form select,
body.user-registration-page.page-id-1569 .ur-frontend-form textarea,
body.user-registration-page.page-id-1569 .ur-frontend-field,
body.user-registration-page.page-id-1570 .ur-frontend-form input[type="text"],
body.user-registration-page.page-id-1570 .ur-frontend-form input[type="password"],
body.user-registration-page.page-id-1570 .user-registration-Input,
body.user-registration-page.page-id-1572 .ur-frontend-form input[type="text"],
body.user-registration-page.page-id-1572 .user-registration-Input,
body.user-registration-page.page-id-1573 .ur-frontend-form input[type="text"],
body.user-registration-page.page-id-1573 .ur-frontend-form input[type="password"],
body.user-registration-page.page-id-1573 .user-registration-Input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background-color: var(--rs-surface-2) !important;
	border: 1px solid var(--rs-border) !important;
	border-radius: 8px !important;
	color: var(--rs-text) !important;
	padding: 0.7rem 0.85rem !important;
	height: auto !important;
	min-height: 2.65rem;
	box-shadow: none !important;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

body.rs-auth-page .ur-frontend-form input::placeholder,
body.rs-auth-page .ur-frontend-form textarea::placeholder,
body.user-registration-page .ur-frontend-form input::placeholder {
	color: rgba(154, 163, 184, 0.75) !important;
}

body.rs-auth-page .ur-frontend-form input:focus,
body.rs-auth-page .ur-frontend-form select:focus,
body.rs-auth-page .ur-frontend-form textarea:focus,
body.rs-auth-page .user-registration-Input:focus,
body.rs-auth-page .ur-frontend-field:focus,
body.user-registration-page.page-id-1569 .ur-frontend-form input:focus,
body.user-registration-page.page-id-1569 .ur-frontend-form select:focus,
body.user-registration-page.page-id-1570 .ur-frontend-form input:focus,
body.user-registration-page.page-id-1572 .ur-frontend-form input:focus,
body.user-registration-page.page-id-1573 .ur-frontend-form input:focus {
	border-color: rgba(212, 175, 55, 0.45) !important;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15) !important;
	background-color: var(--rs-surface-2) !important;
	color: var(--rs-text) !important;
}

body.rs-auth-page .ur-frontend-form select,
body.user-registration-page.page-id-1569 .ur-frontend-form select {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--rs-muted) 50%),
		linear-gradient(135deg, var(--rs-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 2rem !important;
}

body.rs-auth-page .ur-frontend-form select option,
body.user-registration-page .ur-frontend-form select option {
	background: var(--rs-surface);
	color: var(--rs-text);
}

body.rs-auth-page .input-wrapper,
body.rs-auth-page .password-input-group,
body.user-registration-page .input-wrapper,
body.user-registration-page .password-input-group {
	display: block;
	width: 100%;
}

body.rs-auth-page .form-row,
body.rs-auth-page .user-registration-form-row,
body.rs-auth-page .ur-field-item,
body.user-registration-page .form-row,
body.user-registration-page .user-registration-form-row,
body.user-registration-page .ur-field-item {
	margin-bottom: 0.95rem;
	float: none !important;
	width: 100%;
}

/* ---------- Checkbox / remember me ---------- */
body.rs-auth-page .user-registration-before-login-btn,
body.user-registration-page .user-registration-before-login-btn {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.25rem 0 1rem;
}

body.rs-auth-page .ur-checkbox-label,
body.rs-auth-page .user-registration-form__label-for-checkbox,
body.user-registration-page .ur-checkbox-label,
body.user-registration-page .user-registration-form__label-for-checkbox {
	color: var(--rs-muted) !important;
	font-weight: 500 !important;
}

body.rs-auth-page .ur-checkbox-list,
body.user-registration-page .ur-checkbox-list {
	list-style: none;
	padding: 0;
	margin: 0.35rem 0 0;
}

body.rs-auth-page .ur-checkbox-list label,
body.user-registration-page .ur-checkbox-list label {
	display: inline;
	margin-left: 0.4rem;
	color: var(--rs-muted) !important;
	font-weight: 500 !important;
}

/* ---------- Links ---------- */
body.rs-auth-page .ur-frontend-form a,
body.rs-auth-page .user-registration a,
body.rs-auth-page .user-registration-LostPassword a,
body.rs-auth-page .user-registration-register a,
body.user-registration-page.page-id-1569 .ur-frontend-form a,
body.user-registration-page.page-id-1570 .ur-frontend-form a,
body.user-registration-page.page-id-1570 .user-registration a,
body.user-registration-page.page-id-1572 .ur-frontend-form a,
body.user-registration-page.page-id-1573 .ur-frontend-form a {
	color: var(--rs-link, #c5cdd9) !important;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}

body.rs-auth-page .ur-frontend-form a:hover,
body.rs-auth-page .user-registration a:hover,
body.user-registration-page .ur-frontend-form a:hover {
	color: var(--rs-accent-hover) !important;
	text-decoration: underline;
}

body.rs-auth-page .user-registration-register,
body.user-registration-page .user-registration-register {
	margin-top: 1.1rem;
	text-align: center;
	color: var(--rs-muted);
}

/* ---------- Submit buttons — solid gold CTA ---------- */
body.rs-auth-page .ur-frontend-form .ur-submit-button,
body.rs-auth-page .ur-frontend-form .user-registration-Button,
body.rs-auth-page .ur-frontend-form .ur-reset-password-btn,
body.rs-auth-page .ur-frontend-form button[type="submit"],
body.rs-auth-page .ur-frontend-form input[type="submit"],
body.user-registration-page.page-id-1569 .ur-submit-button,
body.user-registration-page.page-id-1570 .ur-submit-button,
body.user-registration-page.page-id-1570 .user-registration-Button,
body.user-registration-page.page-id-1572 .user-registration-Button,
body.user-registration-page.page-id-1572 .ur-reset-password-btn,
body.user-registration-page.page-id-1573 .user-registration-Button,
body.user-registration-page.page-id-1573 .ur-reset-password-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.8rem 1.25rem !important;
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	background: var(--rs-accent) !important;
	color: #151b2d !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.18s ease, color 0.18s ease;
}

body.rs-auth-page .ur-frontend-form .ur-submit-button:hover,
body.rs-auth-page .ur-frontend-form .user-registration-Button:hover,
body.rs-auth-page .ur-frontend-form .ur-reset-password-btn:hover,
body.rs-auth-page .ur-frontend-form button[type="submit"]:hover,
body.rs-auth-page .ur-frontend-form input[type="submit"]:hover,
body.user-registration-page .ur-submit-button:hover,
body.user-registration-page .user-registration-Button:hover,
body.user-registration-page .ur-reset-password-btn:hover {
	background: var(--rs-accent-hover) !important;
	color: #0f1424 !important;
	transform: none;
	filter: none;
	box-shadow: none !important;
}

body.rs-auth-page .ur-button-container,
body.user-registration-page .ur-button-container {
	margin-top: 0.75rem;
	text-align: center;
}

/* ---------- Messages / errors ---------- */
body.rs-auth-page .user-registration-error,
body.rs-auth-page .ur-message,
body.rs-auth-page .user-registration-info,
body.rs-auth-page .user-registration-message,
body.user-registration-page .user-registration-error,
body.user-registration-page .ur-message,
body.user-registration-page .user-registration-info,
body.user-registration-page .user-registration-message {
	border-radius: 8px;
	border: 1px solid var(--rs-border);
	background: var(--rs-surface);
	color: var(--rs-text);
	padding: 0.85rem 1rem;
	margin: 0 auto 1rem;
	max-width: var(--rs-auth-card-max);
}

body.rs-auth-page .user-registration-error,
body.user-registration-page .user-registration-error {
	border-color: rgba(232, 93, 93, 0.4);
	background: rgba(232, 93, 93, 0.08);
	color: #f0a8a8;
}

body.rs-auth-page .user-registration-message-container,
body.user-registration-page .user-registration-message-container {
	width: 100%;
	max-width: var(--rs-auth-card-max);
	margin: 0 auto 1rem;
}

body.rs-auth-page .ur-lost-password-content-container,
body.user-registration-page .ur-lost-password-content-container {
	text-align: left;
}

body.rs-auth-page .ur-input-with-icon,
body.user-registration-page .ur-input-with-icon {
	width: 100%;
}

@media (max-width: 480px) {
	body.rs-auth-page .ur-frontend-form,
	body.user-registration-page.page-id-1569 .ur-frontend-form,
	body.user-registration-page.page-id-1570 .ur-frontend-form,
	body.user-registration-page.page-id-1572 .ur-frontend-form,
	body.user-registration-page.page-id-1573 .ur-frontend-form {
		padding: 1.35rem 1.1rem 1.25rem !important;
	}

	body.rs-auth-page .site-content,
	body.user-registration-page.page-id-1569 .site-content,
	body.user-registration-page.page-id-1570 .site-content,
	body.user-registration-page.page-id-1572 .site-content,
	body.user-registration-page.page-id-1573 .site-content {
		padding-top: 1.5rem;
		min-height: 0;
	}
}
