/* BrikPanel phone app entrance (front-end/push/brikpanel-pwa-entry.php).
   Printed inline on that page only: it is the app's first screen after a
   login ends and loads no other file. The look of brikpanel-ui.css (card,
   text colours, buttons, fields, focus ring) is repeated here on purpose. */
:root {
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
}

.bp-entry-body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding-block: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom));
	padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
	color: #303030;
	background: #f1f1f1;
	font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.bp-entry {
	width: 100%;
	max-width: 400px;
	padding: 28px 24px 24px;
	text-align: center;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.bp-entry__icon {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	border-radius: 14px;
	object-fit: cover;
}

.bp-entry__store {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 550;
	color: #616161;
	overflow-wrap: anywhere;
}

.bp-entry__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #303030;
}

.bp-entry__text {
	margin: 0 0 20px;
	color: #616161;
}

.bp-entry__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	color: #fff;
	background: #303030;
	border: 0;
	border-radius: 10px;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bp-entry__btn:hover {
	background: #1a1a1a;
}

.bp-entry__btn--secondary {
	margin-top: 12px;
	color: #303030;
	background: #fff;
	box-shadow: inset 0 0 0 1px #e3e3e3, 0 1px 0 rgba(0, 0, 0, 0.05);
}

.bp-entry__btn--secondary:hover {
	background: #f7f7f7;
}

.bp-entry__btn:focus-visible,
.bp-entry__other > summary:focus-visible {
	outline: 2px solid #303030;
	outline-offset: 2px;
}

.bp-entry__other {
	margin-top: 16px;
	text-align: start;
}

.bp-entry__other > summary {
	display: block;
	padding: 8px 0;
	text-align: center;
	color: #303030;
	font-size: 14px;
	font-weight: 550;
	text-decoration: underline;
	text-underline-offset: 3px;
	list-style: none;
	cursor: pointer;
}

.bp-entry__other > summary::-webkit-details-marker {
	display: none;
}

.bp-entry__form {
	margin-top: 8px;
}

.bp-entry__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 550;
	color: #303030;
}

/* 16px: an iPhone zooms into a smaller field when it gets the focus. */
.bp-entry__input {
	display: block;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	color: #303030;
	background: #fff;
	border: 1px solid #8a8a8a;
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
}

.bp-entry__input::placeholder {
	color: #8a8a8a;
}

.bp-entry__input:focus {
	border-color: #303030;
	outline: none;
	box-shadow: 0 0 0 1px #303030;
}

.bp-entry__input[aria-invalid="true"] {
	border-color: #d72c0d;
	box-shadow: 0 0 0 1px #d72c0d;
}

.bp-entry__hint {
	margin: 6px 0 0;
	font-size: 13px;
	color: #616161;
}

.bp-entry__error {
	margin: 6px 0 0;
	font-size: 13px;
	color: #d72c0d;
}
