/*
 * Portal styles.
 *
 * Deliberately plain and short. The portal lives inside the Hub theme, so it
 * inherits the site's typography and colours; only what a theme cannot know
 * about — the disabled-code state, the field error marks, the link rows — is
 * styled here. A theme override is expected, not fought.
 */

.arlabas-portal {
	max-width: 48rem;
	margin: 0 auto;
}

.arlabas-lede {
	opacity: 0.8;
}

.arlabas-form .arlabas-field {
	margin: 0 0 1.25rem;
}

.arlabas-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.arlabas-form input[type="text"],
.arlabas-form input[type="email"],
.arlabas-form input[type="password"],
.arlabas-form select {
	width: 100%;
	max-width: 32rem;
	padding: 0.5rem 0.65rem;
}

.arlabas-field--invalid input,
.arlabas-field--invalid select {
	border-color: #b32d2e;
}

.arlabas-error {
	display: block;
	margin-top: 0.25rem;
	color: #b32d2e;
	font-size: 0.875em;
}

.arlabas-button {
	padding: 0.6rem 1.4rem;
	cursor: pointer;
}

/* A pending affiliate's code is shown but visibly inert. A working-looking
 * code that quietly records nothing is the failure this prevents. */
.arlabas-code--disabled code {
	opacity: 0.45;
	text-decoration: line-through;
}

.arlabas-code__note {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875em;
	opacity: 0.8;
}

.arlabas-panel {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
}

.arlabas-panel--pending {
	border-color: #dba617;
}

.arlabas-panel--suspended {
	border-color: #b32d2e;
}

.arlabas-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.arlabas-links li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.5rem;
}

.arlabas-links__label {
	min-width: 12rem;
	font-size: 0.875em;
	opacity: 0.8;
}

.arlabas-links input {
	flex: 1 1 20rem;
	padding: 0.4rem 0.55rem;
	font-family: monospace;
	font-size: 0.875em;
}

.arlabas-notice {
	margin-bottom: 1.25rem;
	padding: 0.85rem 1.1rem;
	border-left: 4px solid currentColor;
}

.arlabas-notice--success {
	color: #0a6b2d;
}

.arlabas-notice--info {
	color: #0f5c9c;
}

.arlabas-notice--warning {
	color: #8a6100;
}

.arlabas-notice--error {
	color: #b32d2e;
}
