/**
 * Pievid Custom Login - Admin styles.
 *
 * @package Pievid_Login
 */

/* ---------- Two-column layout ---------- */

.pievid-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
	margin-top: 16px;
}

.pievid-layout-main {
	flex: 1 1 540px;
	min-width: 0;
}

.pievid-layout-side {
	flex: 0 0 360px;
	position: sticky;
	top: 32px;
}

@media ( max-width: 1100px ) {
	.pievid-layout-side {
		flex-basis: 100%;
		position: static;
	}
}

/* ---------- Logo upload thumbnail ---------- */

.pievid-logo-actions {
	margin-top: 8px;
}

.pievid-logo-actions .button + .button,
.pievid-logo-actions .button + .button-link-delete {
	margin-left: 4px;
}

.pievid-logo-preview-wrap {
	margin-top: 12px;
}

.pievid-logo-preview {
	display: block;
	max-width: 320px;
	max-height: 200px;
	width: auto;
	height: auto;
	padding: 8px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	box-shadow: 0 1px 0 rgba( 0, 0, 0, 0.04 );
}

.pievid-logo-preview-wrap[hidden],
#pievid_login_logo_remove[hidden] {
	display: none;
}

/* ---------- Live preview pane ---------- */

.pievid-preview-wrap {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px 18px 20px;
	box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.04 );
}

.pievid-preview-heading {
	margin: 0 0 4px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1d2327;
}

.pievid-preview-wrap .description {
	margin-bottom: 14px;
}

/*
 * The mock login stage. Default colors live here so first paint is
 * sane even before the JS runs; the JS overrides via inline styles.
 */
.pievid-preview {
	background-color: #1e40af;
	border-radius: 4px;
	padding: 32px 18px;
	min-height: 280px;
	overflow: hidden;
}

.pievid-preview-stage {
	max-width: 260px;
	margin: 0 auto;
}

.pievid-preview-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 84px;
	margin: 0 auto 18px;
	color: rgba( 255, 255, 255, 0.65 );
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	text-decoration: none;
}

.pievid-preview-logo.has-image .pievid-preview-logo-fallback {
	display: none;
}

.pievid-preview-logo-fallback {
	border: 1px dashed rgba( 255, 255, 255, 0.4 );
	padding: 4px 10px;
	border-radius: 3px;
}

.pievid-preview-message {
	background: #fff;
	border-left: 4px solid #72aee6;
	padding: 8px 10px;
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.5;
	color: #2c3338;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.08 );
	word-wrap: break-word;
}

.pievid-preview-message[hidden] {
	display: none;
}

.pievid-preview-card {
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, 0.06 );
	border-radius: 3px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.13 );
}

.pievid-preview-card p {
	margin: 0 0 12px;
}

.pievid-preview-card label {
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
	color: #2c3338;
}

.pievid-preview-card input[type="text"],
.pievid-preview-card input[type="password"] {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background: #fff;
	font-size: 13px;
	box-sizing: border-box;
	pointer-events: none;
	color: #50575e;
	min-height: 28px;
}

.pievid-preview-submit {
	margin-top: 14px;
	margin-bottom: 0;
	text-align: right;
}

.pievid-preview-button {
	background-color: #1e40af;
	border: 1px solid #1e40af;
	color: #fff;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 2;
	border-radius: 3px;
	cursor: default;
	pointer-events: none;
	box-shadow: 0 1px 0 rgba( 0, 0, 0, 0.08 );
}
