/**
 * Password Protect Master — Public / Frontend Base Styles
 *
 * @package PasswordProtectMaster
 */

/* ===== Base Reset for Plugin Elements ===== */
.ppmstr-form-wrap *,
.ppmstr-fullpage-wrap * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ===== Common Form Styles ===== */
.ppmstr-form-icon {
	color: #6C5CE7;
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
}

.ppmstr-form-headline {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	/* color intentionally omitted — set via inline style from template */
}

.ppmstr-form-desc {
	font-size: 14px;
	/* color intentionally omitted — set via inline style from template */
	text-align: center;
	margin-bottom: 24px;
	line-height: 1.5;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ppmstr-form-error {
	background: rgba(225, 112, 85, 0.1);
	color: #C0392B;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 18px;
	text-align: center;
	border: 1px solid rgba(225, 112, 85, 0.2);
	animation: ppmstr-shake 0.4s ease;
}

@keyframes ppmstr-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-6px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

.ppmstr-password-form {
	width: 100%;
}

.ppmstr-form-input-wrap {
	position: relative;
	margin-bottom: 16px;
}

.ppmstr-form-input {
	width: 100%;
	padding: 14px 48px 14px 16px; /* right padding reserves space for eye-toggle icon */
	border-radius: 10px;
	font-size: 15px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	outline: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	/* border, color, background intentionally omitted — set via inline style from template */
}

.ppmstr-form-input:focus {
	border-color: #6C5CE7;
	box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.ppmstr-form-input::placeholder {
	color: #A0A5B8;
}

.ppmstr-eye-toggle {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #A0A5B8;
	padding: 4px;
	display: flex;
	align-items: center;
	transition: color 0.2s ease;
}

.ppmstr-eye-toggle:hover {
	color: #6C5CE7;
}

.ppmstr-form-submit {
	width: 100%;
	padding: 14px 24px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
	letter-spacing: 0.3px;
	/* background, color, border intentionally omitted — set via inline style from template */
}

.ppmstr-form-submit:hover {
	transform: translateY(-1px);
	opacity: 0.9;
}

.ppmstr-form-submit:active {
	transform: translateY(0);
}

/* ===== Shortcode Inline Form ===== */
.ppmstr-shortcode-form {
	margin: 24px 0;
}

.ppmstr-shortcode-form .ppmstr-form-card--inline {
	max-width: 380px;
	margin: 0 auto;
	padding: 28px 24px;
	background: #FFFFFF;
	border-radius: 14px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(108, 92, 231, 0.08);
	text-align: center;
}

.ppmstr-shortcode-form .ppmstr-form-icon {
	margin-bottom: 14px;
}

.ppmstr-shortcode-form .ppmstr-form-headline {
	font-size: 18px;
	margin-bottom: 14px;
}
