/* QR Auth - Desktop Login Box View */

.rd-qr-auth-container {
	text-align: center;
}

.rd-qr-auth-instructions {
	color: var(--rd-font-dark);
	font-size: var(--rd-fontsize-4);
	line-height: 1.5;
	margin-bottom: 20px;
}

.rd-qr-auth-code {
	display: inline-block;
	padding: 16px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.rd-qr-auth-code img {
	display: block;
	width: 220px;
	height: 220px;
	image-rendering: pixelated;
}

.rd-qr-auth-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--rd-font-light);
	font-size: var(--rd-fontsize-3);
	margin-bottom: 16px;
}

.rd-qr-auth-loading {
	text-align: center;
	padding: 40px 0;
}

.rd-qr-auth-loading p {
	margin-top: 16px;
	color: var(--rd-font-light);
}

.rd-qr-login-btn {
	/* Minor visual distinction for the QR button */
}

/* Spinner animation (shared between desktop & mobile) */
.rd-qr-auth-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: var(--rd-primary-active, #1a73e8);
	border-radius: 50%;
	animation: rd-qr-spin 0.8s linear infinite;
	margin: 0 auto;
}

.rd-qr-auth-spinner-small {
	width: 18px;
	height: 18px;
	border-width: 2px;
	margin: 0;
}

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

/* QR Auth Mobile Component */

.pcx-qr-auth-mobile {
	text-align: center;
}

.pcx-qr-auth-mobile-logo {
	margin-bottom: 24px;
}

.pcx-qr-auth-mobile-content h2 {
	font-size: 20px;
	margin-bottom: 12px;
	color: #333;
}

.pcx-qr-auth-mobile-content p {
	color: #666;
	line-height: 1.5;
	margin-bottom: 24px;
}

.pcx-qr-auth-mobile-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	background: #1a73e8;
	color: #fff;
	transition: background 0.2s;
	width: 100%;
	max-width: 300px;
}

.pcx-qr-auth-mobile-btn:hover {
	background: #1557b0;
}

.pcx-qr-auth-mobile-btn:active {
	background: #0d47a1;
}

.pcx-qr-auth-mobile-btn-retry {
	background: #666;
}

.pcx-qr-auth-mobile-btn-retry:hover {
	background: #555;
}

.pcx-qr-auth-mobile-status {
	padding: 40px 0;
}

.pcx-qr-auth-mobile-status p {
	margin-top: 16px;
	color: #666;
}

.pcx-qr-auth-mobile-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #1a73e8;
	border-radius: 50%;
	animation: rd-qr-spin 0.8s linear infinite;
	margin: 0 auto;
}

.pcx-qr-auth-mobile-checkmark {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #4caf50;
	color: #fff;
	font-size: 32px;
	line-height: 64px;
	text-align: center;
	margin: 0 auto 16px;
}

.pcx-qr-auth-mobile-success h2 {
	color: #2e7d32;
}

.pcx-qr-auth-mobile-error-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #f44336;
	color: #fff;
	font-size: 32px;
	line-height: 64px;
	text-align: center;
	margin: 0 auto 16px;
}

.pcx-qr-auth-mobile-error h2 {
	color: #d32f2f;
}
