/* Extends login.css's .vista-card/.vista-form-group/.vista-btn vocabulary
   (WIP-9351 follow-up) for mojo/sso's public SSO pages rendered through
   Vista's custom/vista override (welcome/newuser/linkuser/errors) - served
   cross-app from mojo/sso's templates via /connect/auth/css/custom/vista/,
   the same way those templates already reference login.js/lock-icon.svg.
   Loaded alongside login.css, never standalone. */

.vista-select {
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
	color: #053742;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	padding: 12px 16px;
	font-size: 14px;
	font-family: inherit;
}

.vista-field-hint {
	font-weight: 400;
	opacity: 0.75;
}

.vista-required {
	color: #ffd7d7;
}

.vista-field-error {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #ffd7d7;
}

/* Secondary/quiet button (e.g. "Go Back", "Back") - an outline on the
   card's own tinted background rather than the solid CTA fill. */
.vista-btn--secondary {
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #ffffff;
}

.vista-btn--secondary:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.vista-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vista-actions .vista-btn {
	width: auto;
	flex: 1 1 auto;
}

/* Two-up "which option?" cards (welcome.html.ep's link-vs-create-new
   choice). */
.vista-choice-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.vista-choice-card {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 8px;
	text-align: center;
}

.vista-choice-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.85;
}

/* welcome.html.ep's own "Go Back" (no form wrapping it here to supply a
   flex gap, unlike linkuser/newuser) sits flush against the choice cards
   above it without this. */
.vista-choice-group + .vista-actions {
	margin-top: 16px;
}

/* Password field with a show/hide toggle. */
.vista-input-group {
	position: relative;
	display: flex;
}

.vista-input-group input {
	padding-right: 64px;
}

.vista-input-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	border: none;
	background: none;
	padding: 4px 6px;
	cursor: pointer;
	color: #053742;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Multi-select "pills" (branch/group selection) - a checkbox visually
   replaced by its label, toggled by the browser's own :checked state. */
.vista-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vista-pill-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.vista-pill-label {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 9999px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vista-pill-input:checked + .vista-pill-label {
	background: #ffffff;
	border-color: #ffffff;
	color: #053742;
}

.vista-pill-input:focus-visible + .vista-pill-label {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* Error pages (welcome_genericerror/invaliduser/invaliduuid/lockeduser) -
   a single-message card, same tab/body shape as the login card but with
   no tabs. */
.vista-error-card .vista-panel-title {
	margin-bottom: 16px;
}

/* Inline links (e.g. the mailto: support address in
   public_error_contact.html.ep) otherwise fall back to the browser's
   default link blue, unreadable against the card's dark teal
   background. */
.vista-panel-intro a {
	color: #ffffff;
}

.vista-panel-intro a:hover,
.vista-panel-intro a:focus-visible {
	opacity: 0.85;
}

/* Agent-site SSO provider button(s) (WIP-9351) - separated from the
   credentials form/its Log In button above, and from each other when a
   site has more than one provider configured. */
.vista-sso-buttons {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (max-width: 520px) {
	.vista-choice-group {
		flex-direction: column;
	}

	.vista-actions {
		flex-direction: column;
	}
}
