/* WRECore Password Protected - Public Styles */

.wrecore-password-protected-container {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wrecore-password-protected-wrapper {
	width: 100%;
	max-width: 600px !important;
}

.wrecore-password-protected-box {
	background: #ffffff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.wrecore-password-protected-icon {
	margin: 0 auto 20px;
	color: #667eea;
}

.wrecore-password-protected-icon svg {
	display: block;
	margin: 0 auto;
}

.wrecore-password-protected-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 15px;
	line-height: 1.3;
}

.wrecore-password-protected-description {
	font-size: 16px;
	color: #4a5568;
	margin: 0 0 30px;
	line-height: 1.6;
}

.wrecore-password-protected-form {
	text-align: left;
}

.wrecore-password-protected-field {
	margin-bottom: 20px;
}

.wrecore-password-protected-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 8px;
}

.wrecore-password-protected-field input[type="password"],
.wrecore-password-protected-field input[type="text"] {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: #f7fafc;
}

.wrecore-password-protected-field input[type="password"]:focus,
.wrecore-password-protected-field input[type="text"]:focus {
	outline: none;
	border-color: #667eea;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wrecore-password-protected-separator {
	text-align: center;
	margin: 20px 0;
	position: relative;
}

.wrecore-password-protected-separator::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e2e8f0;
}

.wrecore-password-protected-separator span {
	position: relative;
	background: white;
	padding: 0 15px;
	color: #718096;
	font-size: 14px;
	font-weight: 600;
}

.wrecore-password-protected-message {
	margin: 15px 0;
	padding: 12px;
	border-radius: 6px;
	font-size: 14px;
	display: none;
}

.wrecore-password-protected-message.error {
	display: block;
	background: #fed7d7;
	color: #c53030;
	border: 1px solid #fc8181;
}

.wrecore-password-protected-message.success {
	display: block;
	background: #c6f6d5;
	color: #22543d;
	border: 1px solid #68d391;
}

.wrecore-password-protected-submit {
	width: 100%;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.wrecore-password-protected-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.wrecore-password-protected-submit:active {
	transform: translateY(0);
}

.wrecore-password-protected-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Screen reader text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* Responsive */
@media (max-width: 640px) {
	.wrecore-password-protected-box {
		padding: 30px 20px;
	}

	.wrecore-password-protected-title {
		font-size: 24px;
	}

	.wrecore-password-protected-description {
		font-size: 14px;
	}
}

/* YOOtheme Pro & Builder Compatibility */
.wrecore-password-protected-container * {
	box-sizing: border-box;
}

/* Ensure form works with any theme */
.wrecore-password-protected-form input,
.wrecore-password-protected-form button {
	font-family: inherit;
}

/* Content Teaser Styles */
.wrecore-teaser-form {
	max-width: 600px;
	margin: 40px auto;
	padding: 15px 30px 30px 30px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wrecore-teaser-message {
	display: block;
	text-align: center;
	box-sizing: border-box;
}

.wrecore-teaser-message strong {
	display: block;
	font-weight: 600;
	line-height: 1.5;
}

.wrecore-teaser-form .wrecore-password-protected-form {
	margin: 20px 0 0 0 !important;
}

.wrecore-teaser-form .wrecore-password-protected-field {
	margin-bottom: 15px;
}

.wrecore-teaser-form input[type="password"] {
	width: 100% !important;
	max-width: 100% !important;
	padding: 12px 16px !important;
	font-size: 16px !important;
	border: 2px solid #e2e8f0 !important;
	border-radius: 8px !important;
	background: #f7fafc !important;
	box-sizing: border-box !important;
	transition: all 0.3s ease !important;
}

.wrecore-teaser-form input[type="password"]:focus {
	outline: none !important;
	border-color: #667eea !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.wrecore-teaser-form .wrecore-password-protected-submit {
	width: 100% !important;
	max-width: 100% !important;
	padding: 14px 20px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
	box-sizing: border-box !important;
}

.wrecore-teaser-form .wrecore-password-protected-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.wrecore-teaser-form #wrecore-password-message {
	margin-top: 15px !important;
	padding: 12px !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	text-align: center !important;
}

/* Responsive teaser */
@media (max-width: 640px) {
	.wrecore-teaser-form {
		padding: 20px;
		margin: 30px auto;
	}
	
	.wrecore-teaser-message {
		font-size: 14px;
	}
}
