/**
 * plugins/generic/entraSso/styles/loginButton.css
 *
 * Copyright (c) 2026 Penerbit USM
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * The "Sign in with Microsoft" block on the login page.
 *
 * Deliberately small and entirely scoped under .entraSso_login, so it cannot
 * reach anything the theme owns. Sizes are in em so the block follows the
 * theme's own font size; the button's own colours are fixed because
 * Microsoft's branding guidelines specify them (white face, #8c8c8c border,
 * #5e5e5e text) and they must look the same in every theme.
 */

.entraSso_login {
	margin: 1.5em 0 0;
	max-width: 24em;
}

/* The "or" rule between password login and Microsoft sign-in. The lines are
   drawn with pseudo-elements so screen readers hear only the word. */
.entraSso_login__separator {
	display: flex;
	align-items: center;
	margin: 0 0 1em;
}

.entraSso_login__separator::before,
.entraSso_login__separator::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #d6d6d6;
}

.entraSso_login__or {
	flex: 0 0 auto;
	padding: 0 0.75em;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b6b6b;
}

.entraSso_login__button {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	box-sizing: border-box;
	min-height: 41px;
	padding: 0.55em 0.85em;
	border: 1px solid #8c8c8c;
	border-radius: 2px;
	background-color: #ffffff;
	color: #5e5e5e;
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
}

.entraSso_login__button:hover,
.entraSso_login__button:focus,
.entraSso_login__button:active {
	background-color: #f3f3f3;
	border-color: #6b6b6b;
	color: #5e5e5e;
	text-decoration: none;
}

/* A visible focus ring in every theme, including those that remove outlines. */
.entraSso_login__button:focus-visible {
	outline: 2px solid #0067b8;
	outline-offset: 2px;
}

.entraSso_login__icon {
	flex: 0 0 auto;
	width: 1.25em;
	height: 1.25em;
}

/* AD FS mode: USM's crest (60 x 64, transparent) in place of the squares.
   Themes size images themselves (the default theme's main-area rule sets
   height: auto, which once showed the image at full size), so this selector
   is deliberately more specific than a theme's "container img" rule, and
   every dimension is stated. */
.entraSso_login a.entraSso_login__button img.entraSso_login__logo {
	flex: 0 0 auto;
	display: block;
	width: auto;
	height: 1.75em;
	max-width: 1.75em;
	max-height: 1.75em;
	margin: 0;
	padding: 0;
	border: 0;
}

.entraSso_login__hint {
	margin: 0.6em 0 0;
	font-size: 0.85em;
	color: #6b6b6b;
}

/* Some themes give .buttons a flex row; keep this block on its own line. */
.entraSso_login,
.entraSso_login__separator {
	width: 100%;
}
