/**
 * Pretpot Login Form with Social Login Widget Styles
 * @package Pretpot_Massive_Addons_Kit_For_Elementor
 * @since 2.7.5
 */

/* ========== Container ========== */
.pretpot-login-form-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.pretpot-login-form-container {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========== Title & Subtitle ========== */
.pretpot-login-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px 0;
	text-align: center;
	line-height: 1.2;
}

.pretpot-login-subtitle {
	font-size: 14px;
	color: #666666;
	margin: 0 0 24px 0;
	text-align: center;
	line-height: 1.4;
}

/* ========== Social Buttons ========== */
.pretpot-social-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.pretpot-social-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
}

.pretpot-social-button:hover {
	background: #f8f8f8;
	border-color: #d0d0d0;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pretpot-social-button svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.pretpot-social-button span {
	flex: 1;
	text-align: left;
}

/* ========== Divider ========== */
.pretpot-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #999999;
	font-size: 12px;
	font-weight: 500;
	margin: 20px 0;
	position: relative;
}

.pretpot-divider::before,
.pretpot-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e0e0e0;
}

.pretpot-divider::before {
	margin-right: 16px;
}

.pretpot-divider::after {
	margin-left: 16px;
}

/* ========== Form ========== */
.pretpot-login-form {
	width: 100%;
}

.pretpot-form-group {
	margin-bottom: 16px;
}

.pretpot-form-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	margin-bottom: 8px;
	line-height: 1.4;
}

.pretpot-form-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
	color: #1a1a1a;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	outline: none;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.pretpot-form-input:focus {
	border-color: #7c3aed;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.pretpot-form-input::placeholder {
	color: #999999;
}

/* ========== Password Field with Blur ========== */
.pretpot-password-wrapper {
	position: relative;
}

.pretpot-password-wrapper .pretpot-form-input {
	padding-right: 48px;
}

/* Hide checkbox */
.pretpot-toggle-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

/* Password blurred by default */
.pretpot-password-input {
	filter: blur(4px);
	transition: filter 0.3s ease;
}

/* Remove blur when checkbox checked */
.pretpot-toggle-checkbox:checked ~ .pretpot-password-input {
	filter: blur(0);
}

/* Toggle button */
.pretpot-password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: #999999;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.pretpot-password-toggle:hover {
	color: #666666;
}

.pretpot-toggle-checkbox:checked ~ .pretpot-password-toggle {
	color: #7c3aed;
}

.pretpot-password-toggle svg {
	width: 20px;
	height: 20px;
	pointer-events: none;
}

/* ========== Form Links ========== */
.pretpot-form-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 8px;
}

.pretpot-remember-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.pretpot-checkbox {
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: #ffffff;
	transition: all 0.3s ease;
	position: relative;
	flex-shrink: 0;
}

.pretpot-checkbox:checked {
	background: #7c3aed;
	border-color: #7c3aed;
}

.pretpot-checkbox:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.pretpot-remember-label {
	font-size: 14px;
	color: #666666;
	user-select: none;
}

.pretpot-forgot-link {
	font-size: 14px;
	color: #7c3aed;
	text-decoration: none;
	transition: color 0.3s ease;
}

.pretpot-forgot-link:hover {
	color: #5b21b6;
	text-decoration: underline;
}

/* ========== Submit Button ========== */
.pretpot-submit-button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.pretpot-submit-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
	transition: left 0.5s ease;
}

.pretpot-submit-button:hover::before {
	left: 100%;
}

.pretpot-submit-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
}

.pretpot-submit-button:active {
	transform: translateY(0);
}

.pretpot-submit-button.loading {
	pointer-events: none;
	opacity: 0.7;
}

.pretpot-button-text {
	position: relative;
	z-index: 1;
}

.pretpot-button-arrow {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
	position: relative;
	z-index: 1;
}

.pretpot-submit-button:hover .pretpot-button-arrow {
	transform: translateX(4px);
}

/* ========== Form Messages ========== */
.pretpot-form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
	display: none;
}

.pretpot-form-message.show {
	display: block;
}

.pretpot-form-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.pretpot-form-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ========== Sign Up Link ========== */
.pretpot-signup-text {
	margin-top: 24px;
	text-align: center;
	font-size: 14px;
	color: #666666;
	line-height: 1.5;
}

.pretpot-signup-link {
	color: #7c3aed;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.pretpot-signup-link:hover {
	color: #5b21b6;
	text-decoration: underline;
}

/* ========== Loading State ========== */
.pretpot-submit-button.loading .pretpot-button-text::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: pretpot-spin 0.6s linear infinite;
}

@keyframes pretpot-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ========== Field Errors ========== */
.pretpot-field-error {
	color: #dc2626;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

.pretpot-form-input.error {
	border-color: #dc2626;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
	.pretpot-login-form-container {
		max-width: 100%;
		border-radius: 0;
	}

	.pretpot-login-title {
		font-size: 28px;
	}

	.pretpot-form-links {
		flex-direction: column;
		align-items: flex-start;
	}

	.pretpot-social-buttons {
		gap: 10px;
	}

	.pretpot-social-button {
		padding: 10px 16px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.pretpot-login-title {
		font-size: 24px;
	}

	.pretpot-login-subtitle {
		font-size: 13px;
	}

	.pretpot-form-input {
		padding: 10px 14px;
		font-size: 13px;
	}

	.pretpot-submit-button {
		padding: 12px 20px;
		font-size: 15px;
	}
}

/* ========== Accessibility ========== */
.pretpot-form-input:focus-visible,
.pretpot-submit-button:focus-visible,
.pretpot-social-button:focus-visible,
.pretpot-checkbox:focus-visible {
	outline: 2px solid #7c3aed;
	outline-offset: 2px;
}

/* ========== RTL Support ========== */
[dir="rtl"] .pretpot-social-button {
	flex-direction: row-reverse;
}

[dir="rtl"] .pretpot-social-button span {
	text-align: right;
}

[dir="rtl"] .pretpot-divider::before {
	margin-right: 0;
	margin-left: 16px;
}

[dir="rtl"] .pretpot-divider::after {
	margin-left: 0;
	margin-right: 16px;
}

[dir="rtl"] .pretpot-password-wrapper .pretpot-form-input {
	padding-right: 16px;
	padding-left: 48px;
}

[dir="rtl"] .pretpot-password-toggle {
	right: auto;
	left: 12px;
}

[dir="rtl"] .pretpot-submit-button:hover .pretpot-button-arrow {
	transform: translateX(-4px);
}

/* ========== Print Styles ========== */
@media print {
	.pretpot-login-form-wrapper {
		display: none;
	}
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
	.pretpot-social-button,
	.pretpot-form-input,
	.pretpot-submit-button,
	.pretpot-checkbox,
	.pretpot-forgot-link,
	.pretpot-signup-link,
	.pretpot-password-toggle,
	.pretpot-button-arrow {
		transition: none;
	}

	.pretpot-submit-button::before {
		transition: none;
	}

	.pretpot-submit-button:hover {
		transform: none;
	}
}