/* UNITE HPC Access: forms, notices, account cards and the document list. */
.uh-access {
	--uh-a-red: #c8101e;
	--uh-a-red-dark: #a50d19;
	--uh-a-ink: #211a1a;
	--uh-a-muted: #534342;
	--uh-a-line: #d8c2bf;
	--uh-a-soft: #fff0ee;
	max-width: 640px;
	margin: 0 auto;
	color: var(--uh-a-ink);
	font-size: 1rem;
	line-height: 1.5;
}
.uh-access *,
.uh-access *::before,
.uh-access *::after { box-sizing: border-box; }

.uh-access-form p { margin: 0 0 16px; }
.uh-access-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.uh-access-form input[type="text"],
.uh-access-form input[type="email"],
.uh-access-form input[type="password"] {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #857371;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
}
.uh-access-form input:focus-visible,
.uh-access-btn:focus-visible,
.uh-access a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.uh-access-form small { display: block; margin-top: 4px; color: var(--uh-a-muted); }

.uh-access-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }

.uh-access-check { display: flex; gap: 10px; align-items: flex-start; }
.uh-access-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.uh-access-check label { font-weight: 400; margin: 0; }

/* Trap for robots: off screen for people, still "visible" to a script. */
.uh-access-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.uh-access-btn {
	display: inline-block;
	min-height: 48px;
	padding: 12px 22px;
	border: 2px solid var(--uh-a-red);
	border-radius: 8px;
	background: var(--uh-a-red);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.uh-access-btn:hover { background: var(--uh-a-red-dark); border-color: var(--uh-a-red-dark); color: #fff; }
.uh-access-btn--plain { background: #fff; color: var(--uh-a-red); }
.uh-access-btn--plain:hover { background: var(--uh-a-soft); color: var(--uh-a-red-dark); }

.uh-access-alt { color: var(--uh-a-muted); }
.uh-access-form--small { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--uh-a-line); }
.uh-access-form--small h3 { margin: 0 0 12px; font-size: 1.1rem; }

.uh-access-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--uh-a-line);
	border-left-width: 5px;
	border-radius: 8px;
	background: #fff;
}
.uh-access-notice ul { margin: 0; padding-left: 20px; }
.uh-access-notice--success { border-color: #1b7a43; background: #eef8f1; }
.uh-access-notice--error { border-color: #ba1a1a; background: #ffedea; }
.uh-access-notice--info { border-color: #1d5fbf; background: #eef4fd; }

.uh-access-card {
	margin: 0 0 20px;
	padding: 20px;
	border: 1px solid var(--uh-a-line);
	border-radius: 12px;
	background: #fff;
}
.uh-access-card h2 { margin: 0 0 12px; font-size: 1.25rem; }
.uh-access-card > p:last-child,
.uh-access-card form > p:last-child { margin-bottom: 0; }
.uh-access-tfa { overflow-x: auto; }

.uh-access-badge {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--uh-a-red);
	border-radius: 999px;
	background: var(--uh-a-soft);
	color: var(--uh-a-red-dark);
	font-size: .82rem;
	font-weight: 700;
	white-space: nowrap;
}

.uh-access-doclist { list-style: none; margin: 0 0 24px; padding: 0; }
.uh-access-doclist li { padding: 12px 0; border-bottom: 1px solid var(--uh-a-line); }
.uh-access-doclist a { font-weight: 700; overflow-wrap: anywhere; }
.uh-access-docmeta,
.uh-access-docdesc { color: var(--uh-a-muted); font-size: .9rem; }

.uh-access-denied { padding: 48px 16px; text-align: center; }
.uh-access-denied h1 { margin: 0 0 12px; font-size: clamp(1.5rem, 4vw, 2rem); }
.uh-access-denied p { margin: 0 auto 20px; max-width: 52ch; }

body.uh-access-standalone { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #fff8f7; }
