/* The gate's own stylesheet. Nothing here touches the rest of the
   site: it is only ever loaded on the gate page itself. */

.ppg-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background: var(--ppg-bg, #f3f4f6);
	color: var(--ppg-text, #1f2933);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: var(--ppg-text-size, 16px);
	line-height: 1.5;
}

.ppg-box {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	text-align: center;
}

/* Only when the frame is switched on in Settings. Left off, the gate
   is just the logo, the words and the box for the password, on your
   own background. */
.ppg-box.ppg-framed {
	background: var(--ppg-box, #ffffff);
	border-radius: 10px;
	padding: 36px 32px 32px;
	box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.ppg-logo {
	display: block;
	margin: 0 auto 20px;
	width: var(--ppg-logo-width, 220px);
	max-width: 100%;
	height: auto;
}

.ppg-heading {
	margin: 0 0 10px;
	font-size: var(--ppg-heading-size, 22px);
	font-weight: 600;
	color: inherit;
}

.ppg-intro {
	margin: 0 0 20px;
	opacity: 0.85;
}

.ppg-error {
	margin: 0 0 18px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdecec;
	color: #8a1f1f;
	font-size: 15px;
	text-align: left;
}

.ppg-form {
	margin: 0;
	text-align: left;
}

.ppg-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.ppg-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	margin-bottom: 16px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	font-size: 16px;
	background: #fff;
	color: #1f2933;
}

.ppg-input:focus {
	outline: 2px solid var(--ppg-button, #1f6feb);
	outline-offset: 1px;
}

.ppg-button {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--ppg-button, #1f6feb);
	color: var(--ppg-button-text, #ffffff);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.ppg-button:hover {
	filter: brightness(0.94);
}

.ppg-footer {
	margin: 22px 0 0;
	font-size: 13px;
	opacity: 0.7;
}

@media (max-width: 480px) {
	.ppg-box.ppg-framed {
		padding: 28px 20px 24px;
	}
}
