/**
 * TNG Audience Protection — Roadblock Styles
 *
 * Provides a clean, accessible roadblock UI that works with any theme.
 * Designed to integrate with Elementor and Hello Elementor child theme.
 */

/* Roadblock Container */
.tng-roadblock {
	max-width: 520px;
	margin: 60px auto;
	padding: 40px 30px;
	text-align: center;
	font-family: inherit;
}

.tng-roadblock__inner {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 50px 40px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Icon */
.tng-roadblock__icon {
	color: #64748b;
	margin-bottom: 20px;
}

.tng-roadblock__icon svg {
	display: inline-block;
}

/* Title */
.tng-roadblock__title {
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 10px;
	line-height: 1.3;
}

/* Description */
.tng-roadblock__description {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 30px;
	line-height: 1.5;
}

/* Form */
.tng-roadblock__form {
	position: relative;
}

.tng-roadblock__field {
	margin-bottom: 16px;
}

.tng-roadblock__field input[type="password"] {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	color: #1e293b;
	outline: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	box-sizing: border-box;
}

.tng-roadblock__field input[type="password"]:focus {
	border-color: #3b82f6;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tng-roadblock__field input[type="password"]::placeholder {
	color: #94a3b8;
}

/* Error message */
.tng-roadblock__error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #dc2626;
	padding: 10px 16px;
	font-size: 14px;
	margin-bottom: 16px;
	text-align: left;
}

/* Submit button */
.tng-roadblock__submit {
	display: inline-block;
	width: 100%;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: #3b82f6;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	line-height: 1.4;
}

.tng-roadblock__submit:hover {
	background: #2563eb;
}

.tng-roadblock__submit:active {
	transform: scale(0.98);
}

.tng-roadblock__submit:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	transform: none;
}

.tng-roadblock__submit--loading {
	position: relative;
	color: transparent;
}

.tng-roadblock__submit--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: tng-spin 0.6s linear infinite;
}

@keyframes tng-spin {
	to { transform: rotate(360deg); }
}

/* Links */
.tng-roadblock__links {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tng-roadblock__link {
	font-size: 14px;
	color: #3b82f6;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tng-roadblock__link:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
	.tng-roadblock {
		margin: 30px auto;
		padding: 20px 15px;
	}

	.tng-roadblock__inner {
		padding: 30px 20px;
	}

	.tng-roadblock__title {
		font-size: 18px;
	}
}
